mirror of
https://github.com/zebrajr/opencv.git
synced 2025-12-06 00:19:46 +01:00
Fixed logical error in camera calibration tutorial.
This commit is contained in:
parent
a7ff9087f9
commit
52ae1cfc29
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user