Hi CV/Pattern Recognition Community,
because my last thread was concerning the segmentation as BLOB and started to getting too big, with no clear results. I would like to reconcider the last step of that process regarding the sequential gaining of object contour points.
I need to extract the contour of an image from a defined starting point (left) to the right (endpoint).
As you can see in the next image, there are two yellow windows (left and right). These are the mentioned start- and endpoints.
And what I want to do: Starting from the left yellow window and moving to the right, saving (x,y) coords of the regarding points. This is what the red line (contour) does.
The sequence of the contour pixels does matter.
I am at the step where I've only got a binary image, So far, so good. In the worst case still with holes and possible noise in the rest of the image.
So, here are some images, which I want to extract.
For this example, I'd like to get the outer contour line of the object on the table/underground. As you can see in the right upper corner and in the left upper corner are fragments of the edge detection process, which should not be traversed.
Thank you in advance. Matlab and/or OpenCV Hints are welcome!