mirror of
https://github.com/opencv/opencv.git
synced 2026-07-25 21:33:04 +04:00
Fixed logical error in camera calibration tutorial.
This commit is contained in:
@@ -647,7 +647,7 @@ static bool runCalibration( Settings& s, Size& imageSize, Mat& cameraMatrix, Mat
|
||||
{
|
||||
objectPoints[0][s.boardSize.width - 2].x = objectPoints[0][0].x + grid_width;
|
||||
}
|
||||
else if (s.calibrationPattern != Settings::Pattern::CHESSBOARD)
|
||||
else if (s.calibrationPattern == Settings::Pattern::CHESSBOARD)
|
||||
{
|
||||
objectPoints[0][s.boardSize.width - 1].x = objectPoints[0][0].x + grid_width;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user