I am working to add Potrace support to another program, but the output of Potrace leaves me a little stumped. How can I parse the output of Potrace into some format which my program can use?
To get parseable output from Potrace, I suggest using the -q and -c options. The default output is optimized for size, not readability. With ‘potrace -qc’, you should get exactly what you need. If you use the output from Potrace for processing by another program, I also recommend increasing the output resolution, e.g., -u=100 or -u=1000, to reduce the effect of roundoff errors. Note that the output coordinates correspond to input (bitmap) coordinates, multiplied by the unit length, then rounded to integers.
Related Questions
- I am working to add Potrace support to another program, but the output of Potrace leaves me a little stumped. How can I parse the output of Potrace into some format which my program can use?
- I work in a full-time position during the day – is the Professional Leadership program able to accommodate the working adult?
- Does the Deployment Cycle Support (DCS) Program apply to me as a DA Civilian?