Last edited by Dr Laser; 06-17-2008 at 18:54.
I hired an Italian guy to do my wires. Now they look like spaghetti!
It should not be all that hard to see a raster object separated from its background. It only takes a few integer color values of difference. Once you have found that boundary, you have a line that is defined as the edges or sides of the actual pixels; not the pixels themselves. If you think about it, that means that any line you could draw around an object in pixel space will be made of only the four cardinal directions; up down, right, left; all at 90 degrees of each other. Obviously there are straight lines that can be easily identified as several pixel edges in the same direction, in a row, but there are also several patterns to look for like up, right, up, right, up, right, etc would be a diagonal line at 45 degrees, Up, up, right up, up, right, etc. would be 60 degrees. It wouldn't take much to figure out what is really part of the line and what is noise. That can be done by examining a series of pixel edges in a row and looking for small amounts of meandering and looking for very small areas of bounded regions separated from the larger bounded regions. Also keep in mind that pixel space is intrinsically integer, whereas the vector space that it gets converted to is essentially real, floating point numbers. You can find a line that is infinitely thin and lies between any rational end points.
James.