PANDORE Version 6 | GREYC-IMAGE |
pgeodesicdilation performs the dilation of the pixels of the image im_in as long as those pixels belong to a non 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 dilation of point p corresponds to the operation:
if im_msq (p)!=0 dilation(p) = MAX(neighbors of p specified by the structuring element) else dilation(p) = im_in(p).
Conditional dilation is defined as:
pdilation hs in.pan i1.pan pmask i1.pan msq.pan out.pan
For a binary image, dilation dilates white areas.
For the images color, 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 80 1e30 i1.pan i3.pan pbinarization 30 1e30 i1.pan i4.pan pgeodesicdilation 1 1 -1 i3.pan i4.pan out.pan
Author: Régis Clouard