PANDORE Version 6 GREYC-IMAGE

plipadd



Performs image addition according to the LIP model.



Synopsis

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

Description

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

The LIP image addition is defined as:

  im_out(x,y) = im_in1(x,y) + im_in2(x,y) - [ (im_in1(x,y).im_in2(x,y)) / M]
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 addition is computed separately on each band (marginal approach).

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Adds to images a.pan and b.pan, and result in result.pan:

   plipadd a.pan b.pan result.pan

See also

Arithmetic

C++ prototype

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

Version française

Addition de 2 images selon le modèle LIP.


Author: Régis Clouard