PANDORE Version 6 GREYC-IMAGE

plegendrepolynomialfitting



Approximates image to flat background using Legendre polynomial fitting.



Synopsis

plegendrepolynomialfitting xorder yorder [im_in|-] [im_mk|-] [im_out|-]

Description

plegendrepolynomialfitting converts an image content into a flat background image, using Legendre polynomial. It uses the orthogonality relation of the Legendre polynomials to expand an image as a double sum of those functions. The sum is then evaluated to produce an image that approximates a projection onto the space of polynomial images.

This operator removes all sorts of uneven illumination with a gradually change of background color raising or falling from any part of a border to the opposite border.

Parameters

Order values control the precision of the background fitting: the greater the order values, the closer to the input image content.

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

More examples

See also

Surface Fitting

C++ Prototype

Errc PLegendrePolynomialFitting( const Img2duc &im_in, Img2duc &im_out, int yOrder, int yOrder );

Version française

Calcul de l'approximation du fond d'une image en utilisant une approximation par polynômes de Legendre.


Author: Régis Clouard