PANDORE Version 6 GREYC-IMAGE

perosion



Performs morphological erosion with a list of predefined structuring elements.



Synopsis

perosion num_se halfsize [-m mask][im_in|-][im_out|-]

Description

perosion erodes points of stronger contrast according to a structuring element.

Erosion corresponds to the operation: replaces 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 specified by its number num_se and its halfsize.

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 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, pseerosion, pdilation

C++ prototype

Errc PErosion( const Img2duc &im_in, Img2duc &im_out, int num_es, int halfsize );

Version française

Erosion des points de fort contraste d'une image.


Author: Régis Clouard