A Local Averaging Filter

An averaging filter replaces a selected sample with the arithmetic mean of nearby samples under a defined window and boundary rule.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace an isolated bright point
  2. Retain numerical scale

Trace an isolated bright point

For a one-dimensional window containing 0, 9, and 0, the central mean is three. Neighboring output windows can also include that bright sample. See sliding window totals.

Retain numerical scale

Averaging can produce fractional results even if inputs are integer codes. Choose output precision deliberately. Normalized image range explains a common working representation.[1][2]

References

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