This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

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