Lines Matching defs:distCoeffs
66 Mat cameraMatrix = _cameraMatrix.getMat(), distCoeffs = _distCoeffs.getMat();
93 if( !distCoeffs.empty() )
94 distCoeffs = Mat_<double>(distCoeffs);
97 distCoeffs.create(12, 1, CV_64F);
98 distCoeffs = 0.;
109 CV_Assert( distCoeffs.size() == Size(1, 4) || distCoeffs.size() == Size(4, 1) ||
110 distCoeffs.size() == Size(1, 5) || distCoeffs.size() == Size(5, 1) ||
111 distCoeffs.size() == Size(1, 8) || distCoeffs.size() == Size(8, 1) ||
112 distCoeffs.size() == Size(1, 12) || distCoeffs.size() == Size(12, 1));
114 if( distCoeffs.rows != 1 && !distCoeffs.isContinuous() )
115 distCoeffs = distCoeffs.t();
117 const double* const distPtr = distCoeffs.ptr<double>();
122 double k3 = distCoeffs.cols + distCoeffs.rows - 1 >= 5 ? distPtr[4] : 0.;
123 double k4 = distCoeffs.cols + distCoeffs.rows - 1 >= 8 ? distPtr[5] : 0.;
124 double k5 = distCoeffs.cols + distCoeffs.rows - 1 >= 8 ? distPtr[6] : 0.;
125 double k6 = distCoeffs.cols + distCoeffs.rows - 1 >= 8 ? distPtr[7] : 0.;
126 double s1 = distCoeffs.cols + distCoeffs.rows - 1 >= 12 ? distPtr[8] : 0.;
127 double s2 = distCoeffs.cols + distCoeffs.rows - 1 >= 12 ? distPtr[9] : 0.;
128 double s3 = distCoeffs.cols + distCoeffs.rows - 1 >= 12 ? distPtr[10] : 0.;
129 double s4 = distCoeffs.cols + distCoeffs.rows - 1 >= 12 ? distPtr[11] : 0.;
174 Mat distCoeffs = _distCoeffs.getMat(), newCameraMatrix = _newCameraMatrix.getMat();
187 if( !distCoeffs.empty() )
188 distCoeffs = Mat_<double>(distCoeffs);
191 distCoeffs.create(5, 1, CV_64F);
192 distCoeffs = 0.;
209 initUndistortRectifyMap( A, distCoeffs, I, Ar, Size(src.cols, stripe_size),
220 cv::Mat A = cv::cvarrToMat(Aarr), distCoeffs = cv::cvarrToMat(dist_coeffs), newA;
225 cv::undistort( src, dst, A, distCoeffs, newA );
232 cv::Mat A = cv::cvarrToMat(Aarr), distCoeffs = cv::cvarrToMat(dist_coeffs);
238 cv::initUndistortRectifyMap( A, distCoeffs, cv::Mat(), A,
247 cv::Mat A = cv::cvarrToMat(Aarr), distCoeffs, R, Ar;
254 distCoeffs = cv::cvarrToMat(dist_coeffs);
260 cv::initUndistortRectifyMap( A, distCoeffs, R, Ar, mapx.size(), mapx.type(), mapx, mapy );
398 Mat distCoeffs = _distCoeffs.getMat(), R = _Rmat.getMat(), P = _Pmat.getMat();
412 if( !distCoeffs.empty() )
413 pD = &(_cdistCoeffs = distCoeffs);
504 Mat distCoeffs(distCoeffs0.rows, distCoeffs0.cols, CV_MAKETYPE(CV_64F,distCoeffs0.channels()), k);
518 distCoeffs0.convertTo(distCoeffs,CV_64F);
528 undistortPoints(uvec, vvec, cameraMatrix, distCoeffs, I, I);