Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
See my edits above. That is part of it. You need to threshold to make it binary. But different -type or different -depth will result in txt showing the color as gray(0) or black. You should always test your command up to the txt: to see what format you get for the color before filtering.
Note I corrected my first line. I had accidentally put gray(255) which is white and you wanted black or gray(0). I also forgot the -n and have added that.
etrader wrote:In any case, my ideal solution is to find a set of approximate points (probably from the center of the line) to have the full line coordinates.
The centreline can be traced, and the line expressed as a series of Bezier curves, which IM can draw, or you can create SVG.
See my Lines, points and curves page. I show how to do it, and give away the essential software, but not the complete software.