PANDORE Version 6 GREYC-IMAGE

plipsub



Performs image subtraction according to the LIP model.



Synopsis

plipsub [-m mask] [im_in1|-] [im_in2|-] [im_out|-]

Description

plipsub computes the subtraction of the two input images im_in1 and im_in2, according to the LIP model (Logarithmic Image Processing).

The LIP image subtraction is defined as:

  im_out(x,y) = M.(im_in1(x,y) - im_in2(x,y)) / ( M - im_in2(x,y) )
where M is the number of gray tones (eg, 256 for byte images).

The two inputs must be of the same type. The output image is of same type as the input images.

For color or multispectral image, the subtraction is computed separately on each band (marginal approach).

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

   plipsub a.pan b.pan c.pan

See also

Arithmetic

C++ prototype

Errc PLipSub( const Img2duc &im_in1, const Img2duc &im_in2, Img2duc &im_out );

Version française

Soustraction de 2 images selon le modèle LIP.


Author: Régis Clouard