1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Merge branch 4.x

This commit is contained in:
Alexander Smorkalov
2024-04-16 15:43:06 +03:00
68 changed files with 2220 additions and 306 deletions
+2 -2
View File
@@ -1666,8 +1666,7 @@ void ChessBoardDetector::findQuadNeighbors()
continue;
const float dist = normL2Sqr<float>(pt - all_quads_pts[neighbor_idx]);
if (dist < min_dist &&
dist <= cur_quad.edge_len * thresh_scale &&
if (dist <= cur_quad.edge_len * thresh_scale &&
dist <= q_k.edge_len * thresh_scale)
{
// check edge lengths, make sure they're compatible
@@ -1684,6 +1683,7 @@ void ChessBoardDetector::findQuadNeighbors()
closest_corner_idx = j;
closest_quad = &q_k;
min_dist = dist;
break;
}
}