PANDORE Version 6 |
GREYC-IMAGE |
pgaussianfiltering
Performs gaussian filtering on image.
Synopsis
pgaussianfiltering sigma [-m mask] [im_in|-] [im_out|-]
Description
pgaussfiltering applies a gaussian filter to the input
image im_in.
The input image is convoluted with the gaussian filter to produce
the output image.
The gaussian filter F(i) of size (6*sigma) is built as follows:
F(i)= exp(-((Double)(i-halfsize)*(i-halfsize)/(2.0*sigma*sigma)))
where halfsize = sigma*3.
The image border (of size halfsize) is not considered for processing.
The output image border is just a copy of the input image border.
Parameters
- sigma is the standard deviation of the gaussian.
It is a real between [0 .. imagesize/6].
The greater is sigma, the stronger is the filtering.
It is generally determined by the size of the objects
inside the input image. Object smaller than 6*sigma are removed
form the output image. A typical value is 1.0
Inputs
Outputs
- im_out: an image of the same type as the input image.
Result
Returns SUCCESS or FAILURE.
Examples
Applies a gaussian filter to tangram.pan:
pgaussianfiltering 1 tangram.pan out.pan
See also
Filtering
C++ prototype
Errc PGaussianFiltering( const Img2duc &im_in, Img2duc &im_out, float sigma );
Version française
Lissage d'une image par une gaussienne.
Author: Régis Clouard