ImageConvolve

ImageConvolve[image,ker]
gives the convolution of image with kernel ker.

Details and OptionsDetails and Options

  • ImageConvolve[image,ker] by default gives an image of the same dimensions as image.
  • ImageConvolve works with 2D and 3D binary, grayscale, or multichannel images, operating separately on each channel.
  • The convolution kernel is given as a numerical matrix or as an image.
  • ImageConvolve takes a Padding option. The default setting is Padding->"Fixed".
  • With a setting Padding->None, ImageConvolve[image,ker] normally gives an image smaller than image.
  • ImageConvolve operates separately on each channel in an image.
  • ImageConvolve gives an image of a real type.

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

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]=

Smooth a 3D image:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2008
(7.0)
| Updated in 2012
(9.0)