PANDORE Version 6 GREYC-IMAGE

pdiv



Performs division between images or graphs.



Synopsis

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

Description

pdiv computes the division of the input im_in1 by the input im_in2.

If im_in1 and im_in2 are images then the new image im_out is built with the division of each pixel. The problem of 0 is solved as follows:

   if (pixel(im_in) == 0 )
      pixel(im_out)= 0;
   else
      pixel(im_out) = pixel(im_in1)  / pixel(im_in2);

The two inputs must be of the same type. The output image im_out is a Float image.

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

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

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Divides image a.pan by image b.pan:

   pdiv a.pan b.pan c.pan

See also

Arithmetic

C++ prototype

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

Version française

Division d'images ou de graphes.


Author: Régis Clouard