PANDORE Version 6 GREYC-IMAGE

psub



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



Synopsis

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

Description

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.

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

For region map, returns the new higher label value.

Examples

   psub a.pan b.pan c.pan

See also

Arithmetic

C++ prototype

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

Version française

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


Author: Régis Clouard