PANDORE Version 6 GREYC-IMAGE

pinsertregion



Insert regions inside an image.



Synopsis

pinsertregion [rg_in|-] [im_in1|-] [im_in2|-] [im_out|-]

Description

pinsertregion builds a new subimage im_out with the image im_in2 and the pixels of the input image im_in1 that are inside the bounding box defined by the region map in rg_in. This is useful to insert a subimage into another image at the location specified by the regions of a region map.

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, pinsertregion

C++ prototype

Errc PInsertRegion( const Reg2d &rg_in, const Img2duc &im_in1, const Img2duc &im_in2, Img2duc &im_out );

Version française

Insertion d'une region d'une image dans un euatre.


Author: Régis Clouard