PANDORE Version 6 | GREYC-IMAGE |
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.
Returns SUCCESS or FAILURE.
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
Erosion morphologique des points de plus fort contraste d'une image par une ligne.
Author: Régis Clouard