Skip to content

Commit

Permalink
Merge pull request opencv#24597 from MaximSmolskiy:fix-bug-in-ChessBo…
Browse files Browse the repository at this point in the history
…ardDetector-findQuadNeighbors

Fix bug in ChessBoardDetector::findQuadNeighbors opencv#24597

### Pull Request Readiness Checklist

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 CMake
  • Loading branch information
MaximSmolskiy authored and IskXCr committed Dec 20, 2023
1 parent 01d694e commit 000ec9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/calib3d/src/calibinit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,7 @@ void ChessBoardDetector::findQuadNeighbors()
{
// check edge lengths, make sure they're compatible
// edges that are different by more than 1:4 are rejected
float ediff = cur_quad.edge_len - q_k.edge_len;
const float ediff = fabs(cur_quad.edge_len - q_k.edge_len);
if (ediff > 32*cur_quad.edge_len ||
ediff > 32*q_k.edge_len)
{
Expand Down

0 comments on commit 000ec9c

Please sign in to comment.