From cb61e9102350b807a597c464af11fb9639e188b0 Mon Sep 17 00:00:00 2001 From: alegarda Date: Thu, 21 Feb 2013 10:18:55 +0100 Subject: [PATCH] distCoeffs0 cols to 12 --- modules/calib3d/src/calibration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/calib3d/src/calibration.cpp b/modules/calib3d/src/calibration.cpp index b3ed13ba1e..b82d655513 100644 --- a/modules/calib3d/src/calibration.cpp +++ b/modules/calib3d/src/calibration.cpp @@ -3245,7 +3245,7 @@ static Mat prepareCameraMatrix(Mat& cameraMatrix0, int rtype) static Mat prepareDistCoeffs(Mat& distCoeffs0, int rtype) { - Mat distCoeffs = Mat::zeros(distCoeffs0.cols == 1 ? Size(1, 8) : Size(8, 1), rtype); + Mat distCoeffs = Mat::zeros(distCoeffs0.cols == 1 ? Size(1, 12) : Size(12, 1), rtype); if( distCoeffs0.size() == Size(1, 4) || distCoeffs0.size() == Size(1, 5) || distCoeffs0.size() == Size(1, 8) ||