Restric the angle of fitEllipse?

asked 2014-04-22 07:52:15 -0600

gino0717 gravatar image

I want to use the fitEllipse to detect the orientation of the objects. the rotation of the objects would be restricted in some specific angle,for example, 0~45 degree. I hope I can make the fitEllipse function use only the Ellipse with 0~45 degrees angle to fit the objects.

thanks for any idea.

edit retag flag offensive close merge delete


Hello, actually I am doing the orientation of a bottle and using fitEllipse for this... Could you please explain me what you mean with restrict the angle?... Perhaps I could help you :)

diegomez_86 gravatar imagediegomez_86 ( 2015-06-07 05:33:46 -0600 )edit

hi, it seems that fitEllipse automatically rotate the ellipse to fit the smallest area of the contour, I would hope the ellipse not to rotate to some angle, because the object in the video in which I want to analyze is somewhat fixed and can just move very little.

gino0717 gravatar imagegino0717 ( 2016-01-20 18:24:30 -0600 )edit