PANDORE Version 6 GREYC-IMAGE

psedilation



Performs morphological dilation.



Synopsis

psedilation size [-m mask] [im_se|-] [im_in|-] [im_out|-]

Description

psedilation dilates the points of stronger contrast according to a structuring element.

Dilation corresponds to the operation: replace the central pixel p by the maximum of its neighbors where the neighbors are specified by the structuring element.

   dilation(p) = MAX(neighbors(p)). 

The structuring element is given in the input image im_se. It is a bytes image (Uchar) of the size of the structuring element. This image can be built from a textual file (see pxt2pan) or from the structuring element generator (see pedesign).

For a binary image, dilation dilates white areas.

For the region maps, dilation dilates only regions that touch the background and region with the higher label are privileged.

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

C++ prototype

Errc PSEDilation( const Img2duc &im_in, const Img2duc &im_se, Img2duc &im_out, int size );

Author: Régis Clouard