PANDORE Version 6 | GREYC-IMAGE |
psigmafiltering applies the sigma filter algorithm on the input image im_in.
Each pixel is replaced by the mean value of some of its (halfsize*2+1) neighbors. Only neighbors that have a value close to the central pixel are considered for the mean. Close means which difference is lower than the specified parameter value eps. If the number of used neighbors is lower than the specified parameter value nbmin, than the central pixel is replaced par the mean of all its neighbors.
The image border (of size halfsize) is not considered for processing. The output image border is just a copy of the input image border.
Returns SUCCESS or FAILURE.
Applies a sigma filter to tangram.pan:
psigmafiltering 1 20 2 tangram.pan out.pan
Lissage par filtre adaptatif basé sur le choix des voisins.
Author: Régis Clouard