Skip to content

Commit

Permalink
Merge pull request opencv#25913 from asmorkalov:as/chessboard_debug_logs
Browse files Browse the repository at this point in the history
Use CV_LOG_DEBUG for debug logging in chessboard detector.
  • Loading branch information
asmorkalov authored Jul 16, 2024
2 parents 7b176d8 + c53c2f6 commit 53a5b85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/calib3d/src/chessboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,7 @@ bool Chessboard::Board::normalizeMarkerOrientation()
//check for ambiguity
if(rowCount()-pcell->bottom->getRow() > 2)
{
// std::cout << "FIX board " << pcell->bottom->getRow() << " " << rowCount();
CV_LOG_DEBUG(NULL, "FIX board " << pcell->bottom->getRow() << " " << rowCount());
flipVertical();
rotateRight();
}
Expand Down Expand Up @@ -2259,7 +2259,7 @@ int Chessboard::Board::detectMarkers(cv::InputArray image)
cell->marker = noise-signal > (noise-reference)*0.5;
if(cell->marker)
count++;
// std::cout << x << "/" << y << " signal " << signal << " noise " << noise << " reference " << reference << " has marker " << int(cell->marker) << std::endl;
CV_LOG_DEBUG(NULL, "Cell: " << x << "/" << y << " signal " << signal << " noise " << noise << " reference " << reference << " has marker " << int(cell->marker));
}
}
return count;
Expand Down Expand Up @@ -3373,7 +3373,7 @@ cv::Scalar Chessboard::Board::calcEdgeSharpness(cv::InputArray _img,float rise_d
}
if(count == 0)
{
std::cout <<"calcEdgeSharpness: checkerboard too small for calculation." << std::endl;
CV_LOG_DEBUG(NULL, "calcEdgeSharpness: checkerboard too small for calculation.");
return cv::Scalar::all(9999);
}
sharpness = sharpness/float(count);
Expand Down

0 comments on commit 53a5b85

Please sign in to comment.