PANDORE Version 6 GREYC-IMAGE

padd



Performs addition between images or graphs.



Synopsis

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

Description

padd computes the addition of the two inputs im_in1 and im_in2.

If im_in1 and im_in2 are images then the new image im_out is built with the addition of each pixel:

   pixel(im_out) = (pixel(im_in1) + pixel(im_in2));

The two inputs must be of the same type.

The output type im_out depends on input type:

For color or multispectral image, the addition is computed separately on each band.

If im_in1 and im_in2 are graphs then the new graph im_out is built with the addition of each node values.

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

   padd a.pan b.pan result.pan

See also

Arithmetic

C++ prototype

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

Version française

Addition de 2 images ou de 2 graphes.


Author: Régis Clouard