PANDORE Version 6 GREYC-IMAGE

pextractregion



Extracts a given region of an image.



Synopsis

pextractregion [im_msk|-] [im_in|-] [im_out|-]

Description

pextractregion builds a new subimage im_out with the pixels of the input image im_in inside the boundingbox that contains all the regions of the region map in im_msk.

The result im_out is an image with a size lower or equal to the input image.

Inputs

Outputs

Result

For image returns SUCCESS or FAILURE.

Examples

Extract the subimage around the tangram pieces and then reinsert it in the initial image.

   pbinarization 87 255 examples/tangram.pan a.pan
   plabeling 8 a.pan b.pan
   pextractregion b.pan examples/tangram.pan c.pan
   pinsertregion b.pan c.pan examples/tangram.pan out.pan

See also

Utility, pinserregion

C++ prototype

Errc PExtractRegion( const Reg2d &mask, const Img2duc &im_in, Img2duc &im_out );

Version française

Extraction d'une region d'une image.


Author: Régis Clouard