PANDORE Version 6 | GREYC-IMAGE |
Performs a non local median on image im_in.
Let $f$ be im_in, this algorithm performs iteratively:
$f(u)^{t+1} = Med_{v \sim u}{v \tilde u}(\sqrt{w(u, v)}(f^t(v) - f^t(u))) + f^t(u)$
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.).
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}
With $w(u, v) = 1$ you get the median filter.
Returns SUCCESS or FAILURE.
pnonlocalmedianfiltering 15 10 8 tangram.pan out.pan
Filtrage median non local.
Author: Matthieu Toutain