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