mirror of
https://github.com/opencv/opencv.git
synced 2025-08-01 02:18:01 +08:00
Fix bug in ChessBoardDetector::cleanFoundConnectedQuads
This commit is contained in:
parent
dc0c59fdc6
commit
2f0de10120
@ -1215,7 +1215,7 @@ int ChessBoardDetector::cleanFoundConnectedQuads(std::vector<ChessBoardQuad*>& q
|
||||
// (since we want the rectangle to be as small as possible)
|
||||
// remove the quadrangle that causes the biggest reduction
|
||||
// in pattern size until we have the correct number
|
||||
for (; quad_count > count; quad_count--)
|
||||
while (quad_count > count)
|
||||
{
|
||||
double min_box_area = DBL_MAX;
|
||||
int min_box_area_index = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user