Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Image Processing & Analysis > Image Filtering & Neighborhood Processing > ImageConvolve >

ImageConvolve

ImageConvolve
gives the convolution of image with kernel ker.
  • The convolution kernel is given as a two-dimensional numerical matrix.
  • ImageConvolve by default gives an image of the same dimensions as image.
Smooth an image by convolving with a square kernel:
Convolve a grayscale image with a Sobel mask to detect vertical edges:
Smooth an image by convolving with a square kernel:
In[1]:=
Click for copyable input
Out[1]=
 
Convolve a grayscale image with a Sobel mask to detect vertical edges:
In[1]:=
Click for copyable input
Out[1]=
Pad with zero:
No padding results in a smaller image:
Apply horizontal blur:
Find vertical edges in an image by convolving with a Sobel mask:
Find edges using Robert's method:
Convolution with a constant filter has an effect equivalent to mean filtering:
New in 7 | Last modified in 8
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF