mirror of https://github.com/opencv/opencv.git
Merge pull request #24667 from MaximSmolskiy:fix-mismatch-and-simplify-code-in-ChessBoardDetector-findQuadNeighbors
Fix mismatch and simplify code in ChessBoardDetector::findQuadNeighbors #24667 ### Pull Request Readiness Checklist Сode doesn't match comment. If we want check `1:4` edges ratio and `edge_len` is squared edge length, then we should check ``` ediff > 15*edge_len ``` with constant `15`, not `32`, because ``` ediff > 15*edge_len2 <=> edge_len1 - edge_len2 > 15*edge_len2 <=> edge_len1 > 16*edge_len2 <=> 1:4 edges ratio ``` But for me it's better and simpler to directly check `edge_len1 > 16*edge_len2` 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 - [ ] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMakepull/24760/head
parent
00d7a19ec9
commit
4884083019
1 changed files with 5 additions and 4 deletions
Loading…
Reference in new issue