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[image, ker]
gives the convolution of image with kernel ker.
  • The convolution kernel is given as a two-dimensional numerical matrix.
  • ImageConvolve[image, ker] by default gives an image of the same dimensions as image.
Smooth an image by convoluting with a square kernel:
Convolve a grayscale image with a Sobel mask to detect vertical edges:
Smooth an image by convoluting 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]=
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team