PANDORE Version 6 GREYC-IMAGE

pgeodesicdilation



Performs geodesic dilation.



Synopsis

pgeodesicdilation num_se halfsize iteration [-m mask] [im_in|-] [im_msq|-] [im_out|-]

Description

pgeodesicdilation performs the dilation of the pixels of the image im_in as long as those pixels belong to a non null area specified in the image im_msq.

im_msq is an image of bytes or a region map used as a binary mask. All the non null pixels correspond to a true value for the mask.

The structuring element is specified by its type num_se and its size halfsize.

Geodesic dilation of point p corresponds to the operation:

   if im_msq (p)!=0
      dilation(p) = MAX(neighbors of p specified by the structuring element)
   else
      dilation(p) = im_in(p).

Conditional dilation is defined as:

   pdilation hs in.pan i1.pan
   pmask i1.pan msq.pan out.pan 

For a binary image, dilation dilates white areas.

For the images color, 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, pgeodesicerosion

C++ prototype

Errc PGeodesicDilation( const Img2duc &im_in, const Img2duc &im_msq, Img2duc &im_out, int num_se, int halfsize, int iteration );

Author: Régis Clouard