Home | History | Annotate | Download | only in src

Lines Matching refs:dist_coeffs

48                      const float* dist_coeffs, int cn )
55 float k1 = dist_coeffs[0], k2 = dist_coeffs[1], k3 = dist_coeffs[4];
56 float p1 = dist_coeffs[2], p2 = dist_coeffs[3];
109 cvUndistort2( const CvArr* _src, CvArr* _dst, const CvMat* A, const CvMat* dist_coeffs )
154 if( !CV_IS_MAT(dist_coeffs) || (dist_coeffs->rows != 1 && dist_coeffs->cols != 1) ||
155 (dist_coeffs->rows*dist_coeffs->cols*CV_MAT_CN(dist_coeffs->type) != 4 &&
156 dist_coeffs->rows*dist_coeffs->cols*CV_MAT_CN(dist_coeffs->type) != 5) ||
157 (CV_MAT_DEPTH(dist_coeffs->type) != CV_64F &&
158 CV_MAT_DEPTH(dist_coeffs->type) != CV_32F) )
163 _k = cvMat( dist_coeffs->rows, dist_coeffs->cols,
164 CV_MAKETYPE(CV_32F, CV_MAT_CN(dist_coeffs->type)), k );
165 cvConvert( dist_coeffs, &_k );
180 cvInitUndistortMap( const CvMat* A, const CvMat* dist_coeffs,
217 if( !CV_IS_MAT(dist_coeffs) || (dist_coeffs->rows != 1 && dist_coeffs->cols != 1) ||
218 (dist_coeffs->rows*dist_coeffs->cols*CV_MAT_CN(dist_coeffs->type) != 4 &&
219 dist_coeffs->rows*dist_coeffs->cols*CV_MAT_CN(dist_coeffs->type) != 5) ||
220 (CV_MAT_DEPTH(dist_coeffs->type) != CV_64F &&
221 CV_MAT_DEPTH(dist_coeffs->type) != CV_32F) )
226 _k = cvMat( dist_coeffs->rows, dist_coeffs->cols,
227 CV_MAKETYPE(CV_32F, CV_MAT_CN(dist_coeffs->type)), k );
228 cvConvert( dist_coeffs, &_k );