PANDORE Version 6 | GREYC-IMAGE |
ppolynomialfitting converts an image content into a flat background image, using a polynomial fitting.
The image im_mk is used as a mask, and defines the list of pixels that can be used to compute the polynomial approximation.
The order of the polynomial can be selected separately for x, y, and mixed terms. For example, with orders 2, 3, and 2 for x, y, and xy respectively, the polynomial will be:
a+b*x+c*x^2+d*y+e*y^2+f*y^3+g*xy
Returns SUCCESS or FAILURE.
pthresholding 0 73 tangram.pan mask.pan ppolynomialfitting 2 2 1 tangram.pan mask.pan a.pan pim2sf tangram.pan tangramf.pan psub tangramf.pan a.pan b.pan pmeanvalue a.pan; mean=`pstatus` paddcst $mean b.pan out.pan
Calcul de l'approximation du fond d'une image en utilisant une approximation polynomiale.
Author: Régis Clouard