Hi Thomas
Unless you know a technique to transform these cartesian coordinates into a vector? - which was my original question
Your technique so far has yeilded cartesian coordinates because you've scanned your red image above in a cartesian (raster) manner. In order to produce vectors you need to scan the right hand image in a vector manner. A basic technique for this is to:
1) raster scan from the top left to bottom right until you find a black pixel. we'll call that the "start" pixel and the "focus" pixel. turn it red and store its coordinates.
2) treat that "focus" pixel as being at the centre of a 9 pixel (3x3) square.
3) starting from the pixel to the left, test each pixel around that pixel in a clockwise direction until you get a black pixel. turn it red and store it's coordinates.
4) that pixel becomes the new focus pixel.
5) repeat from 3) until you hit the "start" pixel. (a red pixel).
6) repeat from 1) until you can't find any black pixels.
Optional: Do a test at each found pixel and see how far it is from the previous pixel and only store the coordinates that exceed some distance your happy with. (less points in your vector but less resolution).
This is NOT an optimum search but you can tart it up to taste.
Have fun
Ian