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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -