MinFilter

MinFilter[image,r]
filters image by replacing every value by the minimum in its range-r neighborhood.

MinFilter[data,r]
applies min filtering to an array of data.

DetailsDetails

  • MinFilter[image,r] finds the minimum in × blocks centered on each pixel.
  • At the edges of an image, MinFilter uses smaller neighborhoods.
  • MinFilter works with 3D as well as 2D images, and also with data arrays of any rank.
  • MinFilter[image,{rrow,rcol}] uses range in height, and in width.
  • MinFilter[image,{rslice,rrow,rcol}] uses range in height, in depth, and in width.
  • For multichannel images, MinFilter[image,] replaces each pixel by a pixel in its neighborhood that has the minimum total intensity, averaged over all channels.

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Use a minimum filter to dilate the darker parts of a color image:

In[1]:=
Click for copyable input
Out[1]=

Use minimum filtering to erode thinner objects:

In[1]:=
Click for copyable input
Out[1]=

Minimum filter of a 3D image:

In[1]:=
Click for copyable input
Out[1]=

Minimum filter of a vector:

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