PANDORE Version 6 | GREYC-IMAGE |
Performs a non local dilation on image im_in.
Let $f$ beim_in, this algorithm performs iteratively
number_of_iterations times:
$ f(u)^{t+1} = f^t(u) + \max_{v ~ u}(w(u, v) \max(f^t(v) - f^t(u), 0))$
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.).
Here we use the exponential similarity measure:
$w(u,v)=\exp{-distance(f(u), f(v))^2 / sigma^2}$.
If you use $w(u, v) = 1$, you get the typical dilation operator.
Returns SUCCESS or FAILURE.
pnonlocaldilation 15 10 8 examples/tangram.pan out.pan
Author: Matthieu Toutain