PANDORE Version 6 GREYC-IMAGE

ppolynomialfitting



Approximates image to flat background using polynomial fitting.



Synopsis

ppolynomialfitting xorder yorder xyorder [im_in|-] [im_mk|-] [im_out|-]

Description

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

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

More examples

See also

Surface Fitting

C++ Prototype

Errc PPolynomialFitting( const Imx2d &im_in, const Img2d &im_mk, Imx2d &im_out, int xOrder, int yOrder, int xyOrder );

Version française

Calcul de l'approximation du fond d'une image en utilisant une approximation polynomiale.


Author: Régis Clouard