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

ImageFilter

Updated In 8 Graphic
ImageFilter
applies the function f to the range r neighborhood of each pixel in each channel of image.
  • ImageFilter replaces the value of each pixel by the result of applying the function f to the array of values around that pixel.
  • ImageFilter operates separately on each channel in an image.
  • ImageFilter uses range in the row direction, and in the column direction.
  • ImageFilter picks out neighborhoods that extend rows up, rows down, columns to the left, and columns to the right.
  • The channel values supplied to f are normally in the range 0 to 1, regardless of the underlying type used in the Image object. The function f is assumed to return channel values that are normally in the range 0 to 1.
  • The following options can be given:
Padding"Fixed"what values to assume beyond the image
InterleavingFalsewhether to supply f lists of channel values
MaskingAllregion of interest
  • With the default setting Interleaving->False, the elements in the arrays to which f is applied are individual channel values for the pixels.
  • With Interleaving->True, the elements are instead the list of all channel values for a particular pixel.
  • ImageFilter by default gives an image of the same dimensions as image.
Apply a local minimum filter:
Blur an image by replacing each pixel with the local mean:
Apply a local minimum filter:
In[1]:=
Click for copyable input
Out[1]=
 
Blur an image by replacing each pixel with the local mean:
In[1]:=
Click for copyable input
Out[1]=
Mean filter computed over all channels:
Process the area outside a disk:
Find the exact position of an image fragment:
Create a mean filter using a line kernel:
Median deviation filter:
New in 7 | Last modified in 8