Next: About this document ...
Up: Smoothing
Previous: Median Filter
Statistical thresholding
First find the mean
and the variance
of all pixels
in the neighborhood
of a given pixel
of the input image:
where
is the number of pixels in the neighborhood
.
Then find the corresponding pixel for the output image:
where
is a user specified threshold value.
Nagao's algorithm
- Define a set of K neighborhoods around the pixel
under consideration,
for example, the eight 3x3 neighborhoods in N, NE, E, SE, S, SW, W, and NW directions.
The pixel
should be included as a corner in each of these neighborhoods.
- Find the mean
and variance
for each of the K neighborhoods.
- Replace pixel
by one of the means corresponding to the smallest
:
In this example, the pixel in question
is replaced by the mean 7.1 from
the northeast neighborhood with minimum variance 105.
Next: About this document ...
Up: Smoothing
Previous: Median Filter
Ruye Wang
2013-09-10