Relevant to Image processing
-
Hi I have images with white background and object is in black. Object (Polygon) is in 2D. Using Image processing I need array of p(x, y) location of object edge. As mention Image is black & white. I am looking for generalize algorithm so it can be work for any object (Polygon). Any Suggestion Thanks All
-
Hi I have images with white background and object is in black. Object (Polygon) is in 2D. Using Image processing I need array of p(x, y) location of object edge. As mention Image is black & white. I am looking for generalize algorithm so it can be work for any object (Polygon). Any Suggestion Thanks All
As far as I know you will have to start at one corner and then traverse each pixel checking its colour. When the colour changes from white to black you have discovered a leading edge, then when it next changes from black to white, you have a trailing edge. Once you have captured all the edge points you may want to order them in some way to optimise drawing, e.g. by figuring out all the straight lines.
MVP 2010 - are they mad?