PANDORE Version 6 | GREYC-IMAGE |
pdif 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) = ABS(pixel(im_in1) - pixel(im_in2));
The two inputs must be of the same 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:
Union(im_in1,im_in2) - Intersection(im_in1,im_in2).
Returns SUCCESS or FAILURE.
For region map, returns the new higher label value.
pdif a.pan b.pan c.pan
Différence d'images ou de graphes et différence symétrique entre cartes de régions.
Author: Régis Clouard