PANDORE Version 6 | GREYC-IMAGE |
psub computes the difference between 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 difference between 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 difference is computed separately on each band.
If im_in1 and im_in2 are graphs then the new graph im_out is built with the difference between each node values.
If im_in1 and im_in2 are region maps pdif computes the symmetrical difference between region maps.
Returns SUCCESS or FAILURE.
For region map, returns the new higher label value.
psub a.pan b.pan c.pan
Soustraction d'images ou de graphes et différence non symétrique entre cartes de régions.
Author: Régis Clouard