PANDORE Version 6 GREYC-IMAGE

pnonlocaldilation



Performs a non local dilation with laplacian regularization on image.



Synopsis

pnonlocaldilation sigma number_of_iterations connectivity [im_in|-] [im_out|-]

Description

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.

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Example

See also

Morphology

C++ prototype

Errc PNonLocalDilation( const Img2duc & ims, Img2duc & imd, float sigma, int nbIter, int ngbIdx );

Author: Matthieu Toutain