PANDORE Version 6 | GREYC-IMAGE |
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.
Order values control the precision of the background fitting: the greater the order values, the closer to the input image content.
Returns SUCCESS or FAILURE.
plegendrepolynomialfitting 2 2 tangram.pan a.pan psub tangram.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 par polynômes de Legendre.
Author: Régis Clouard