Find cost of ellipse in OpenCV
<p>I am using code based off of <a href="http://docs.opencv.org/2.4/doc/tutorials/imgproc/shapedescriptors/bounding_rotated_ellipses/bounding_rotated_ellipses.html" rel="nofollow">this example</a> and wonder if there is any way to find out how 'good' the ellipse fit is. I have some ellipses which only very generally fit my data and I want to get rid of them while some of the ellipses are almost perfect.</p>

<p>I'd like to keep on the very good fits and get rid of the poor fits. How can I do this in <code>opencv</code>?</p>