Improve robustness for fitEllipseAMS#26810
Conversation
4f9d602 to
c1cb5c8
Compare
|
@MaximSmolskiy Thanks a lot for the contribution! Do you have couple of cases that are significantly improved by the patch or some quality metric/benchmark? The idea to get really random noise looks good, but the patch brings more changes and their effect is not obvious. |
@asmorkalov Patch brings only changes about adding random noise to points if without that points configuration is quite degenerate. Current diff is scary, but if you enable I borrowed idea from
If matrix Degenerate case |
…-for-fitEllipseAMS Improve robustness for fitEllipseAMS opencv#26810 ### Pull Request Readiness Checklist Related to opencv#26694 Added functionality to add noise to points in degenerate cases and try again for `fitEllipseAMS`. `fitEllipseNoDirect` and `fitEllipseDirect` already have this See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [x] There is a reference to the original bug report and related work - [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [x] The feature is well documented and sample code can be built with the project CMake
Pull Request Readiness Checklist
Related to #26694
Added functionality to add noise to points in degenerate cases and try again for
fitEllipseAMS.fitEllipseNoDirectandfitEllipseDirectalready have thisSee details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.