PANDORE Version 6 | GREYC-IMAGE |
psedilation dilates the points of stronger contrast according to a structuring element.
Dilation corresponds to the operation: replace the central pixel p by the maximum of its neighbors where the neighbors are specified by the structuring element.
dilation(p) = MAX(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 pxt2pan) or from the structuring element generator (see pedesign).
For a binary image, dilation dilates white areas.
For the region maps, dilation dilates only regions that touch the background and region with the higher label are privileged.
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 pinverse tangram.pan i0.pan psedilation 1 es.pan i0.pan i1.pan perosionreconstruction 8 i1.pan i0.pan i2.pan pdif i0.pan i2.pan out.pan
Author: Régis Clouard