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

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