2014-04-07 03:06:57 -0600 | commented question | extract point sequence of edge (a not enclosed contour) by original images you mean the ones that i actually have the problem with? the (canny-edge) images look like this: http://i.imgur.com/5noxbbU.png http://i.imgur.com/oTFz0xj.png |
2014-04-07 02:58:43 -0600 | commented answer | extract point sequence of edge (a not enclosed contour) Thanks, but this doesnt seem to solve it, I have tested your suggestion and updated my Question. The edges in my actual Image are also of thickness=1 |
2014-04-07 02:55:18 -0600 | received badge | ● Editor (source) |
2014-04-06 12:06:37 -0600 | asked a question | extract point sequence of edge (a not enclosed contour) Hello, i am trying to extract the point sequence of a single (curvy) edge, which i obtained with the CannyEdge-Filter. When I use findContours(...EXTERNAL...) i receive a enclosed contour, say for example p1->p2->p3->p4->p3->p2->p1 - but what i really want is just a "one-way-sequence" like p1->p2->p3->p4. I currently use an ugly workaround, where I detect the fraction of the extracted contours which has no reduntant points in it, but this is kind of ineffective and i wonder if there is an easier way to get what I need. @Haris: i have tried your suggestion and got the following output: input image: contour 0: using this code: See what I mean? |