• V
    Merge pull request #17417 from vpisarev:fix_fitellipse · 8abb312c
    Vadim Pisarevsky 提交于
    * improved fitEllipse and fitEllipseDirect accuracy in singular or close-to-singular cases (see issue #9923)
    
    * scale points using double precision
    
    * added normalization to fitEllipseAMS as well; fixed Java test case by raising the tolerance (it's unclear what is the correct result in this case).
    
    * improved point perturbation a bit. make the code a little bit more clear
    
    * trying to fix Java fitEllipseTest by slightly raising the tolerance threshold
    
    * synchronized C++ version of Java's fitEllipse test
    
    * removed trailing whitespaces
    8abb312c
test_fitellipse.cpp 3.6 KB