PANDORE Version 6 GREYC-IMAGE

pmult



Performs multiplication between images or graphs.



Synopsis

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

Description

pmult performs the multiplication 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 multiplication 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 multiplication is computed separately on each band.

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

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

   pmult a.pan b.pan c.pan

See also

Arithmetic

C++ prototype

Errc PMult( const Img2duc &im_in1, const Img2duc &im_in2, Img2dsf &im_out );

Version française

Multiplication d'images ou de graphes.


Author: Régis Clouard