next up previous
Next: About this document ... Up: Smoothing Previous: Median Filter

Statistic based smoothing

Statistical thresholding

First find the mean $\mu$ and the variance $\sigma^2$ of all pixels in the neighborhood $W$ of a given pixel $x[m,n]$ of the input image:

\begin{displaymath}\mu=\frac{1}{N} \sum_{(i,j) \in W} x[i,j] \end{displaymath}


\begin{displaymath}\sigma^2=\frac{1}{N} \sum_{(i,j) \in W} [x[i,j]-\mu]^2 \end{displaymath}

where $N$ is the number of pixels in the neighborhood $W$.

Then find the corresponding pixel for the output image:

\begin{displaymath}y[m,n]=\left\{ \begin{array}{ll}
x[m,n] & \mbox{if $\vert x[...
...mu\vert < \sigma T$}  \mu & \mbox{else}
\end{array} \right. \end{displaymath}

where $T$ is a user specified threshold value.

Nagao's algorithm

Nagao_example.gif

In this example, the pixel in question $x[m,n]=5$ is replaced by the mean 7.1 from the northeast neighborhood with minimum variance 105.


next up previous
Next: About this document ... Up: Smoothing Previous: Median Filter
Ruye Wang 2013-09-10