A Median Filter in a Small Neighborhood

A median filter replaces a position with the median of its neighborhood. One extreme value can have limited influence on that statistic.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace three values
  2. Check boundaries and repeated fine features

Trace three values

For values 4, 100, and 5, the median is five. The mean is \(109/3\), much larger. Sample median gives the ordering rule.

Check boundaries and repeated fine features

An actual small bright feature can also disappear when it is locally outnumbered. Compare against a known pattern and disclose the neighborhood choice. See local averaging for another filter.[1][2]

References

  1. scikit-image Contributors, NumPy Images and Coordinate Conventions ↩
  2. scikit-image Contributors, Image Data Types and Representable Values ↩