PANDORE Version 6 GREYC-IMAGE

pmask



Performs masking of image, graph or region map by an image or a region map.



Synopsis

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

Description

pmask applies the mask im_in2 on the input im_in1.

For image, masking is applied on each pixel:

   if pixel(im_in2)
      pixel(im_out) = pixel(im_in1)
   else
      pixel(im_out) = 0

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

For graph, masking is applied on each node value.

For region map, masking is applied on label. All masked label are set to 0 in the result, and other labels are copied onto the output im_out.

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

See also

logic

C++ prototype

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

Author: Régis Clouard