PANDORE Version 6 GREYC-IMAGE

plinearerosion



Performs linear erosion.



Synopsis

plinearerosion orientation1 orientation2 halfsize [im_in|-] [im_out|-]

Description

plinearerosion erodes the points of stronger contrast with a linear element structuring of direction orientation1 plus orientation2 for 3D images. The size of the structuring element is of halfsize pixels on both sides of the central pixel.

Erosion of a point p corresponds to the operation: replace the central pixel by the minimal value of its neighbors:

   erosion(p) = MIN(neighbors specified by the structuring element). 

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

Gets the tangram pieces boundaries that have at least 5 pixels high:

 
   pgradient 1 tangram.pan i1.pan i2.pan
   pbinarization 20 1e30 i1.pan i3.pan 
   plinearerosion 90 0 5 i3.pan i4.pan
   plineardilation 90 0 5 i4.pan out.pan

See also

Morphology, plineardilation

C++ prototype

Errc PLinearErosion( const Img2duc &im_in, Img2duc &im_out, int orientation1, int orientation2, int halfsize );

Version française

Erosion morphologique des points de plus fort contraste d'une image par une ligne.


Author: Régis Clouard