Parent Topic: Filter

Median Filter

The median filter smooths image data. The median filter computes the median values within a rectangular filter window surrounding each pixel. This has the effect of smoothing the image and preserving edges.

Example:

   5 3 11 
  12 4  9     3x3 filter window
   8 6 14
The median filter finds the median pixel value (the "middle" value in an ordered set of values, below and above which there are an equal number of values). For example, 8 is the median value for the above given set of grey level values (3,4,5,6,(8),9,11,12,14).

NOTE: In order to filter pixels located near the edges of the image, edge pixel values are replicated to give sufficient data.


Parent Topic: Filter
About PCI Help Gateway