PANDORE Version 6 GREYC-IMAGE

pseerosion



Performs morphological erosion.



Synopsis

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

Description

pseerosion erodes the points of stronger contrast according to a structuring element.

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

   erosion(p) = MIN(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 ptxt2pan) or from the structuring element generator (see psedesign).

For a binary image, erosion erodes white areas.

For the region maps, erosion adds pixels with label=0 (background) at the points of erosion.

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, psedilation, perosion

C++ prototype

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

Author: Régis Clouard