How to recognize elips like a circle

asked 2015-03-25 00:49:39 -0600

Volkan gravatar image

updated 2015-03-26 13:14:38 -0600

how can i detect black shape in the mid?

which way i follow ?

image description

edit retag flag offensive close merge delete

Comments

Not quite sure what you mean by this question, are you wanting to detect that black shape in the middle? And do you mean detecting shapes that aren't quite circular?

skipi4 gravatar imageskipi4 ( 2015-03-25 19:47:25 -0600 )edit

i want to need detect black shape in the middle which way to follow ?

Volkan gravatar imageVolkan ( 2015-03-26 13:13:20 -0600 )edit

if it is all the time black as it appears in the picture, then colour segmentation is the simplest way to go.

theodore gravatar imagetheodore ( 2015-03-26 13:37:39 -0600 )edit

Look at this tutorial.

I think in this case cv::threshold, cv::findContours and cv::fitEllipse is your friend.

For choosing right contours use cv::areaContour and cv::arcLength to get circularity for example.

matman gravatar imagematman ( 2015-03-26 13:38:12 -0600 )edit