PANDORE Version 6 GREYC-IMAGE

pextractregion



Extracts regions from an image.



Synopsis

pextractregion [rg_in|-] [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 rg_in.

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 &rg_in, const Img2duc &im_in, Img2duc &im_out );

Author: Régis Clouard