PANDORE Version 6 | GREYC-IMAGE |
Performs a p non local mean filtering on image im_in.
Let $f$ be im_in, this algorithm performs iteratively:
$f(u)^{t+1} = \sum_{v ~ u}{w(u, v)^{p / 2} |f^t(v) - f^t(u)|^{p - 2} f(v)} / \sum_{v ~ u}{ w(u, v)^{p / 2} |f^t(v) - f^t(u)|^{p - 2}}$
with $u$ a pixel location, $v$ a neighbor of $u$, $w(u, v)$
the weight between $u$ and $v$
(which can be a similarity measure, a distance, etc.).
The parameter p can be 1, 2, or any.
We compute weights between a pixel value and its neighbors
(here with an exponential similarity measure):
$w(u, v) = \exp^{-||f(v) - f(u)||^2 / \sigma^2}$.
Returns SUCCESS or FAILURE.
pnonlocalmeanfiltering 15 2 10 8 tangram.pan out.pan
Filtrage moyenneur non local.
Author: Matthieu Toutain