diff --git a/samples/cpp/stereo_calib.cpp b/samples/cpp/stereo_calib.cpp index 44edb82589..f25a3e1392 100644 --- a/samples/cpp/stereo_calib.cpp +++ b/samples/cpp/stereo_calib.cpp @@ -159,7 +159,7 @@ StereoCalib(const vector& imagelist, Size boardSize, bool useCalibrated= { for( j = 0; j < boardSize.height; j++ ) for( k = 0; k < boardSize.width; k++ ) - objectPoints[i].push_back(Point3f(j*squareSize, k*squareSize, 0)); + objectPoints[i].push_back(Point3f(k*squareSize, j*squareSize, 0)); } cout << "Running stereo calibration ...\n";