PANDORE Version 6 GREYC-IMAGE

perosionreconstruction



Performs reconstruction by erosion.



Synopsis

perosionreconstruction connexity [-m mask] [im_in1|-] [im_in2|-] [im_out|-]

Description

perosionreconstruction performs a geodesic reconstruction by erosion of the markers image im_in1 in the mask image im_in2.

The two images must be of the same type, and the image of markers im_in1 must be higher or equal in intensity to the image of mask im_in2.

The reconstruction by erosion according to the connexity consists in the following operation applied until idempotence:

   im1=MAX(im_in1, im_in2)
   imerod=erosion(im1, connexity)
   im1=MAX(imerod, im_in2) 

For the image scolor, the lexicographic order is used: initially by using band X, in the event of equality by using the band Y then band Z.

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

See also

Morphology, pdilationreconstruction

C++ prototype

Errc PErosionReconstruction( const Img2duc &im_in1, const Img2duc &im_in2, Img2duc &im_out, int connexity );

Author: Régis Clouard