DGtalTools
0.9.4
|
Transforms one or several freeman chains into a pgm file by filling their interior areas.
The transformation can fill shapes with hole by using the freemanchain orientation. The interior is considered on the left according to a freeman chain move, i.e. a clockwise oriented contour represents a hole in the shape.
Usage: freeman2img [input] [output]
Allowed options are:
Example:
You will obtain such image:
Example with several contours:
The file located in $DGtal/examples/samples/contourS2.fc contains different contours with some ones corresponds to hole. We can apply the same conversion as the previous example:
You will obtain such image: