DGtalTools  1.3.beta
freeman2sdp

Transform freeman chain into a Sequence of Discrete Points. Result is given to std output.

Usage: freeman2sdp [input] > output.sdp

Allowed options are:

Positionals:
1 TEXT:FILE REQUIRED Input freeman chain file name.
Options:
-h,--help Print this help message and exit
-i,--input TEXT:FILE REQUIRED Input freeman chain file name.
-o,--oneLine output the digital contour in one line like: X0 Y0 X1 Y1 ... XN YN
--info adds some info as comments at the beginning of the file.
@b Example:
@code
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