PANDORE Version 6 | GREYC-IMAGE |
perosionreconstruction performs a geodesic reconstruction by erosion of the markers image im_in1 in the mask image im_in2.
The two images must be of the same type, and the image of markers im_in1 must be higher or equal in intensity to the image of mask im_in2.
The reconstruction by erosion according to the connexity consists in the following operation applied until idempotence:
im1=MAX(im_in1, im_in2) imerod=erosion(im1, connexity) im1=MAX(imerod, im_in2)
For the image scolor, 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.
pbinarization 100 1e30 examples/tangram.pan in.pan pnewimage 256 256 0 255 i0.pan psetborder 1 1 1 1 1 1 0 i0.pan i1.pan perosionreconstruction 4 i1.pan in.pan fillhole_out.pan
Author: Régis Clouard