PANDORE Version 6 | GREYC-IMAGE |
pgeodesicerosion performs the erosion of the pixels of the image im_in as long as those pixels belong to a null area specified in the image im_msq. im_msq is an image of bytes or a region map used as a binary mask. All the non null pixels correspond to a true value for the mask. The structuring element is specified by its type num_se and its size halfsize.
Geodesic erosion of point p corresponds to the operation:
if im_msq (p)=0 erosion(p) = MIN(neighbors of p specified by the structuring element) else erosion(p) = im_in(p).
Whereas, conditional erosion is defined as :
pinverse msq.pan i1.pan por in.pan i1.pan i2.pan perosion hs i2.pan i3.pan pmask i3.pan msq.pan out.pan
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.
case of 2D:
case of 3D:
Returns SUCCESS or FAILURE.
pgradient 1 tangram.pan i1.pan i2.pan pbinarization 0 80 i1.pan i3.pan pbinarization 0 30 i1.pan i4.pan pgeodesicerosion 1 1 -1 i3.pan i4.pan i5.pan pinverse i5.pan out.pan
Author: Régis Clouard