PANDORE Version 6 GREYC-IMAGE

padaptivemeanfiltering



Performs adaptive mean filtering on image.



Synopsis

padaptivemeanfiltering connexity [-m mask] [im_in1|-] [im_in2|-] [im_out|-]

Description

padaptivemeanfiltering applies an adaptive mean filter to the input image im_in. Each pixel is replaced by the mean of the neighbors of its neighbors that have the minimum gradient magnitude. im_in2 contains the gradient magnitude for each pixel.

The image border (of size 2) is not considered for processing. The output image border is just a copy of the input image border.

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Applies an adaptive mean filter to tangram.pan:

   pgradient 1 tangram.pan a.pan b.pan
   padaptivemeanfiltering 8 tangram.pan a.pan out.pan

See also

Filtering

C++ prototype

Errc PAdaptiveMeanFiltering( const Img2duc &im_in,Img2duc &ima,Img2duc &im_out, Uchar connexity );

Version française

Lissage d'une image préservant les contours.


Author: Régis Clouard