c++ - Identifying squares of dots with opencv -



c++ - Identifying squares of dots with opencv -

i have image 4 squares of points in it, each 4 corner points , other, interior points...

what best way identify each separate square can process individually mat, or roi?

they may tilted, sides in 2d might not equal, each have same number of points, , each can contained in 4-sided polygon.

i have this:

http://i58.tinypic.com/wwdw0l.jpg

...and want this:

http://i59.tinypic.com/2dm9gtl.jpg

many thanks.

c++, visual studio, opencv

first of all, little blobs should detected, i.e. through cv::simpleblobdetector class,

using cv::kmeans() find centers of blob clusters , grouping blobs around clusters,

finally, cv::minarearect() find rotated rectangle of minimum area enclosing clustered 2d point set.

c++ opencv

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -