@@ -129,25 +129,25 @@ struct CharucoDetector::CharucoDetectorImpl {
129129 // approximated pose estimation using marker corners
130130 Mat approximatedRvec, approximatedTvec;
131131 Mat objPoints, imgPoints; // object and image points for the solvePnP function
132- printf (" before board.matchImagePoints(markerCorners, markerIds, objPoints, imgPoints);\n " );
132+ // printf("before board.matchImagePoints(markerCorners, markerIds, objPoints, imgPoints);\n");
133133 board.matchImagePoints (markerCorners, markerIds, objPoints, imgPoints);
134- printf (" after board.matchImagePoints(markerCorners, markerIds, objPoints, imgPoints);\n " );
134+ // printf("after board.matchImagePoints(markerCorners, markerIds, objPoints, imgPoints);\n");
135135 if (objPoints.total () < 4ull ) // need, at least, 4 corners
136136 return ;
137137
138138 solvePnP (objPoints, imgPoints, charucoParameters.cameraMatrix , charucoParameters.distCoeffs , approximatedRvec, approximatedTvec);
139- printf (" after solvePnP\n " );
139+ // printf("after solvePnP\n");
140140
141141 // project chessboard corners
142142 vector<Point2f> allChessboardImgPoints;
143143 projectPoints (board.getChessboardCorners (), approximatedRvec, approximatedTvec, charucoParameters.cameraMatrix ,
144144 charucoParameters.distCoeffs , allChessboardImgPoints);
145- printf (" after projectPoints\n " );
145+ // printf("after projectPoints\n");
146146 // calculate maximum window sizes for subpixel refinement. The size is limited by the distance
147147 // to the closes marker corner to avoid erroneous displacements to marker corners
148148 vector<Size> subPixWinSizes = getMaximumSubPixWindowSizes (markerCorners, markerIds, allChessboardImgPoints);
149149 // filter corners outside the image and subpixel-refine charuco corners
150- printf (" before selectAndRefineChessboardCorners\n " );
150+ // printf("before selectAndRefineChessboardCorners\n");
151151 selectAndRefineChessboardCorners (allChessboardImgPoints, image, charucoCorners, charucoIds, subPixWinSizes);
152152 }
153153
0 commit comments