PANDORE Version 6 GREYC-IMAGE

pdif



Performs difference between images or graphs and non symmetrical difference between region maps.



Synopsis

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

Description

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).

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

For region map, returns the new higher label value.

Examples

   pdif a.pan b.pan c.pan

See also

Arithmetic

C++ prototype

Errc PDif( const Img2duc &im_in1, const Img2duc &im_in2, Img2duc &im_out );

Version française

Différence d'images ou de graphes et différence symétrique entre cartes de régions.


Author: Régis Clouard