PANDORE Version 6 GREYC-IMAGE

por



Performs binary or between images or graphs and union between region maps.



Synopsis

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

Description

por performs a bitwise "or" between values of the two inputs im_in1 and im_in2.

If inputs are integer images, the "or" operator uses the '|' C operator and is applied on each pixel:

   pixel(im_out) = pixel(im_in1) | pixel(im_in2);

For real images, the "or" operator is "+":

   pixel(im_out) = pixel(im_in1) + pixel(im_in2);

For color or multispectral image, the "or" operator is computed separately on each band.

For graph, the "or" operator is "+" and it is applied on each node values.

For region map, the "or" operator is the union between regions. The result im_out is a new region map with regions of each input region maps, given preference to smaller regions.

The two inputs must be of the same type.

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

For region map, returns the new higher label value.

Examples

See also

logic

C++ prototype

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

Author: Régis Clouard