PANDORE Version 6 | GREYC-IMAGE |
pand performs a bitwise "and" between values of the two inputs im_in1 and im_in2.
For integer images, the "and" operator uses the '&' C operator and is applied on each pixel:
pixel(im_out) = pixel(im_in1) & pixel(im_in2);
For real image, the "and" operator uses the '*' C operator:
pixel(im_out) = pixel(im_in1) * pixel(im_in2);
For color or multispectral images, the "and" operator is computed separately on each band.
For graphs, the "and" operator is "*" and it is applied on each node values.
For region maps, the "and" operator is the intersection between regions. The result im_out is a new region map with common regions, giving preference to smaller regions. Common regions are regions at the same location and a label > 0. It is not necessary that the regions have the same label value.
The two inputs must be of the same type.
Returns SUCCESS or FAILURE.
For region map, returns the new higher label value.
pbinarization 100 1e30 examples/tangram.pan a.pan pand examples/tangram.pan a.pan b.pan
Author: Régis Clouard