Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

How can I filter contour lines and draw/erase shapes

$
0
0
Hello! Firstly I must admit the title it is not good. I hope that you can help me solving my problem and chaging the title. After doing image processing I got this output: ![image description](https://dl.dropboxusercontent.com/u/710615/outputImage.jpg) As you see in detail, there points which has irregular shapes: ![image description](https://dl.dropboxusercontent.com/u/710615/inDetail.png) My final goal is from this: ![image description](https://dl.dropboxusercontent.com/u/710615/how%20it%20is.png) Achieving something like this: ![image description](https://dl.dropboxusercontent.com/u/710615/how%20it%20should%20be.png) I don't know how to do it. If I need to filter/smoothe the contour lines and then apply a rectangle shape, for instance, or if there is a way to go straight forward without applying any filter. During the image process I was able to collect some keypoints, as you can see, When I plotted them they are in between contours on the center of the irregular shape. The figure show them bigger than they really are, because it was created from matplotlib. ![image description](https://dl.dropboxusercontent.com/u/710615/myimage.png)

Viewing all articles
Browse latest Browse all 41027

Trending Articles