mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 19:24:07 +08:00
Use CV_LOG_DEBUG for debug logging in chessboard detector.
This commit is contained in:
parent
e90935e81c
commit
c53c2f6844
@ -1657,7 +1657,7 @@ bool Chessboard::Board::normalizeMarkerOrientation()
|
|||||||
//check for ambiguity
|
//check for ambiguity
|
||||||
if(rowCount()-pcell->bottom->getRow() > 2)
|
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();
|
flipVertical();
|
||||||
rotateRight();
|
rotateRight();
|
||||||
}
|
}
|
||||||
@ -2259,7 +2259,7 @@ int Chessboard::Board::detectMarkers(cv::InputArray image)
|
|||||||
cell->marker = noise-signal > (noise-reference)*0.5;
|
cell->marker = noise-signal > (noise-reference)*0.5;
|
||||||
if(cell->marker)
|
if(cell->marker)
|
||||||
count++;
|
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;
|
return count;
|
||||||
@ -3373,7 +3373,7 @@ cv::Scalar Chessboard::Board::calcEdgeSharpness(cv::InputArray _img,float rise_d
|
|||||||
}
|
}
|
||||||
if(count == 0)
|
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);
|
return cv::Scalar::all(9999);
|
||||||
}
|
}
|
||||||
sharpness = sharpness/float(count);
|
sharpness = sharpness/float(count);
|
||||||
|
Loading…
Reference in New Issue
Block a user