PANDORE Version 6 |
GREYC-IMAGE |
pmalikperonafiltering
Performs non linear diffusion smoothing.
Synopsis
pmalikperonafiltering iterations edgethreshold [-m mask] [im_in|-] [im_out|-]
Description
pmalikperonafiltering performs filtering
on the input image im_in from the Malik-Perona algorithm.
It is based on the equation diffusion:
c=exp (-(|grad(im_in)|/K)2)
where K = edgethreshold.
The image border (of size 1) is not considered for processing.
The output image border is just a copy of the input image border.
Parameters
- iterations specifies the number of iterations required to
solve the model equation.
It is a positive integer. The number of iterations strongly depends
on the size of the objects contained in the image.
- edgethreshold specifies edge threshold parameter.
It is a positive integer. Edge with gradient magnitude > 10
are preserved whereas other are smoothed. A typical value is 10.
Inputs
- im_in: a grayscale image.
Outputs
- im_out: an image of the same type as the input image.
Result
Returns SUCCESS or FAILURE.
Examples
Applies the Malik-Perona filter to tangram.pan. It preserves
edge with magnitude > 10 and performs 40 iterations:
pmalikperonafiltering 40 10 tangram.pan out.pan
See also
Filtering
C++ prototype
Errc PMalikPeronaFiltering( const Img2duc &im_in, Img2duc &im_out, int iterations, int edgethreshold );
Version française
Lissage d'une image par diffusion non linéaire selon l'algorithme de Malik-Peronna.
Author: Sophie Sch&uum;pp