PANDORE Version 6 | GREYC-IMAGE |
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.
Returns SUCCESS or FAILURE.
psedesign 1 8 es.pan pseerosion 1 es.pan tangram.pan i1.pan pdilationreconstruction 8 i1.pan tangram.pan i2.pan pdif tangram.pan i2.pan out.pan
Author: Régis Clouard