How to detect an ellipse? [closed]

asked 2016-01-25 12:54:07 -0600

spyderespirt0 gravatar image

I'm currently using Emgu CV, and I'm trying to locate a target such as the one below.image description

I attempted to use HoughCircle method to find the ellipses, but that isn't working for me; I suspect they are not "circular" enough. So how would I go about finding these ellipses?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-03 06:20:39.854713

Comments

The target "ellipses" are not elliptical. Rather they are composed of two half circles and two lines. For ellipse fits take a look at cv::fitEllipse(). Evantually you can check the error of a contour to the fitted ellipse points (cv::ellipse()).

matman gravatar imagematman ( 2016-01-25 13:31:34 -0600 )edit

Okay, so how should I go about finding these half circles with lines?

spyderespirt0 gravatar imagespyderespirt0 ( 2016-01-25 13:43:09 -0600 )edit

Perhabs you can create a model shape and test the found contours with cv::matchShapes, but the image is very blured. At the moment I have no smart solution for that.

matman gravatar imagematman ( 2016-01-25 13:50:35 -0600 )edit