PANDORE Version 6 | GREYC-IMAGE |
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.
Returns SUCCESS or FAILURE.
Divides image a.pan by image b.pan:
pdiv a.pan b.pan c.pan
Division d'images ou de graphes.
Author: Régis Clouard