Transforms Freeman chain into a Sequence of Discrete Points (.sdp).
Usage: freeman2sdp [input] [output]
Allowed options are:
-h [ --help ] display this message
-i [ --input ] arg the input FreemanChain file name
-o [ --output ] arg (=result.pgm) the output filename
-b [ --border ] arg (=0) add a border in the resulting image (used
only in the automatic mode i.e when --space
is not used.
-s [ --space ] arg Define the space from its bounding box
(lower and upper coordinates) else the
space is automatically defined from the
freemanchain bounding boxes.
Example:
freeman2sdp -i ${
DGtal}/tests/samples/contourS.fc > contourS.sdp
You will obtain such result:
$ more contourS.sdp
# grid curve 1/1 closed
13 60
14 60
14 59
14 58
15 58
15 57
16 57
16 56
17 56
17 55
17 54
18 54
...
- See also
- freeman2sdp.cpp