Lines Matching refs:cols
295 CV_ASSERT( A->cols == B->rows ); in cvCalcMatMulDeriv()
298 L = A->cols; in cvCalcMatMulDeriv()
299 N = B->cols; in cvCalcMatMulDeriv()
305 dABdA->rows == A->rows*B->cols && dABdA->cols == A->rows*A->cols ); in cvCalcMatMulDeriv()
311 dABdB->rows == A->rows*B->cols && dABdB->cols == B->rows*B->cols ); in cvCalcMatMulDeriv()
401 CV_ASSERT( _rvec1->rows == 3 && _rvec1->cols == 1 && CV_ARE_SIZES_EQ(_rvec1, _rvec2) ); in cvComposeRT()
524 if( (jacobian->rows != 9 || jacobian->cols != 3) && in cvRodrigues2()
525 (jacobian->rows != 3 || jacobian->cols != 9)) in cvRodrigues2()
529 if( src->cols == 1 || src->rows == 1 ) in cvRodrigues2()
534 if( src->rows + src->cols*CV_MAT_CN(src->type) - 1 != 3 ) in cvRodrigues2()
537 if( dst->rows != 3 || dst->cols != 3 || CV_MAT_CN(dst->type) != 1 ) in cvRodrigues2()
608 else if( src->cols == 3 && src->rows == 3 ) in cvRodrigues2()
618 if( (dst->rows != 1 || dst->cols*CV_MAT_CN(dst->type) != 3) && in cvRodrigues2()
619 (dst->rows != 3 || dst->cols != 1 || CV_MAT_CN(dst->type) != 1)) in cvRodrigues2()
747 CvMat _Jf = cvMat( _J.rows, _J.cols, CV_32FC1, Jf ); in cvRodrigues2()
800 count = MAX(objectPoints->rows, objectPoints->cols); in cvProjectPoints2()
804 (objectPoints->rows == count && CV_MAT_CN(objectPoints->type)*objectPoints->cols == 3))) in cvProjectPoints2()
814 (imagePoints->rows == count && CV_MAT_CN(imagePoints->type)*imagePoints->cols == 2))) in cvProjectPoints2()
823 (((r_vec->rows != 1 && r_vec->cols != 1) || in cvProjectPoints2()
824 r_vec->rows*r_vec->cols*CV_MAT_CN(r_vec->type) != 3) && in cvProjectPoints2()
825 ((r_vec->rows != 3 && r_vec->cols != 3) || CV_MAT_CN(r_vec->type) != 1))) in cvProjectPoints2()
829 if( r_vec->rows == 3 && r_vec->cols == 3 ) in cvProjectPoints2()
838 _r = cvMat( r_vec->rows, r_vec->cols, CV_MAKETYPE(CV_64F,CV_MAT_CN(r_vec->type)), r ); in cvProjectPoints2()
844 (t_vec->rows != 1 && t_vec->cols != 1) || in cvProjectPoints2()
845 t_vec->rows*t_vec->cols*CV_MAT_CN(t_vec->type) != 3 ) in cvProjectPoints2()
849 _t = cvMat( t_vec->rows, t_vec->cols, CV_MAKETYPE(CV_64F,CV_MAT_CN(t_vec->type)), t ); in cvProjectPoints2()
853 A->rows != 3 || A->cols != 3 ) in cvProjectPoints2()
868 (distCoeffs->rows != 1 && distCoeffs->cols != 1) || in cvProjectPoints2()
869 (distCoeffs->rows*distCoeffs->cols*CV_MAT_CN(distCoeffs->type) != 4 && in cvProjectPoints2()
870 distCoeffs->rows*distCoeffs->cols*CV_MAT_CN(distCoeffs->type) != 5) ) in cvProjectPoints2()
874 _k = cvMat( distCoeffs->rows, distCoeffs->cols, in cvProjectPoints2()
884 dpdr->rows != count*2 || dpdr->cols != 3 ) in cvProjectPoints2()
900 dpdt->rows != count*2 || dpdt->cols != 3 ) in cvProjectPoints2()
915 dpdf->rows != count*2 || dpdf->cols != 2 ) in cvProjectPoints2()
930 dpdc->rows != count*2 || dpdc->cols != 2 ) in cvProjectPoints2()
945 dpdk->rows != count*2 || (dpdk->cols != 5 && dpdk->cols != 4 && dpdk->cols != 2) ) in cvProjectPoints2()
954 CV_CALL( _dpdk = cvCreateMat( dpdk->rows, dpdk->cols, CV_64FC1 )); in cvProjectPoints2()
1019 if( _dpdk->cols > 2 ) in cvProjectPoints2()
1025 if( _dpdk->cols > 4 ) in cvProjectPoints2()
1162 count = MAX(objectPoints->cols, objectPoints->rows); in cvFindExtrinsicCameraParams2()
1171 (rvec->rows == 1 || rvec->cols == 1) && rvec->rows*rvec->cols*CV_MAT_CN(rvec->type) == 3 ); in cvFindExtrinsicCameraParams2()
1174 (tvec->rows == 1 || tvec->cols == 1) && tvec->rows*tvec->cols*CV_MAT_CN(tvec->type) == 3 ); in cvFindExtrinsicCameraParams2()
1316 _r = cvMat( rvec->rows, rvec->cols, in cvFindExtrinsicCameraParams2()
1318 _t = cvMat( tvec->rows, tvec->cols, in cvFindExtrinsicCameraParams2()
1358 nimages = npoints->rows + npoints->cols - 1; in cvInitIntrinsicParams2D()
1473 (npoints->rows != 1 && npoints->cols != 1) ) in cvCalibrateCamera2()
1477 nimages = npoints->rows*npoints->cols; in cvCalibrateCamera2()
1485 ((rvecs->rows != nimages || (rvecs->cols*cn != 3 && rvecs->cols*cn != 9)) && in cvCalibrateCamera2()
1486 (rvecs->rows != 1 || rvecs->cols != nimages || cn != 3)) ) in cvCalibrateCamera2()
1496 ((tvecs->rows != nimages || tvecs->cols*cn != 3) && in cvCalibrateCamera2()
1497 (tvecs->rows != 1 || tvecs->cols != nimages || cn != 3)) ) in cvCalibrateCamera2()
1504 cameraMatrix->rows != 3 || cameraMatrix->cols != 3 ) in cvCalibrateCamera2()
1510 (distCoeffs->cols != 1 && distCoeffs->rows != 1) || in cvCalibrateCamera2()
1511 (distCoeffs->cols*distCoeffs->rows != 4 && in cvCalibrateCamera2()
1512 distCoeffs->cols*distCoeffs->rows != 5) ) in cvCalibrateCamera2()
1541 …_k = cvMat( distCoeffs->rows, distCoeffs->cols, CV_MAKETYPE(CV_64F,CV_MAT_CN(distCoeffs->type)), k… in cvCalibrateCamera2()
1542 if( distCoeffs->rows*distCoeffs->cols*CV_MAT_CN(distCoeffs->type) == 4 ) in cvCalibrateCamera2()
1721 if( rvecs->rows == nimages && rvecs->cols*CV_MAT_CN(rvecs->type) == 9 ) in cvCalibrateCamera2()
1774 if(calibMatr->cols != 3 || calibMatr->rows != 3) in cvCalibrationMatrixValues()
1866 CV_ASSERT( (_npoints->cols == 1 || _npoints->rows == 1) && in cvStereoCalibrate()
1869 nimages = _npoints->cols + _npoints->rows - 1; in cvStereoCalibrate()
1870 npoints = cvCreateMat( _npoints->rows, _npoints->cols, _npoints->type ); in cvStereoCalibrate()
1879 objectPoints = cvCreateMat( _objectPoints->rows, _objectPoints->cols, in cvStereoCalibrate()
1893 ((_imagePoints1->rows == pointsTotal && _imagePoints1->cols*cn == 2) || in cvStereoCalibrate()
1894 (_imagePoints1->rows == 1 && _imagePoints1->cols == pointsTotal && cn == 2)) ); in cvStereoCalibrate()
1899 imagePoints[k] = cvCreateMat( points->rows, points->cols, CV_64FC(CV_MAT_CN(points->type))); in cvStereoCalibrate()
1910 CvMat tdist = cvMat( distCoeffs->rows, distCoeffs->cols, in cvStereoCalibrate()
2216 if( _R->rows == 1 || _R->cols == 1 ) in cvStereoCalibrate()
2230 CvMat tdist = cvMat( distCoeffs->rows, distCoeffs->cols, in cvStereoCalibrate()
2298 if( _R->rows == 3 && _R->cols == 3 ) in cvStereoRectify()
2433 (_points1->rows == 1 || _points1->cols == 1) && in cvStereoRectifyUncalibrated()
2434 (_points2->rows == 1 || _points2->cols == 1) && in cvStereoRectifyUncalibrated()
2437 npoints = _points1->rows * _points1->cols * CV_MAT_CN(_points1->type) / 2; in cvStereoRectifyUncalibrated()
2439 _m1 = cvCreateMat( _points1->rows, _points1->cols, CV_64FC(CV_MAT_CN(_points1->type)) ); in cvStereoRectifyUncalibrated()
2440 _m2 = cvCreateMat( _points2->rows, _points2->cols, CV_64FC(CV_MAT_CN(_points2->type)) ); in cvStereoRectifyUncalibrated()
2497 _m1->cols = _m2->cols = npoints; in cvStereoRectifyUncalibrated()
2629 int x, y, rows = src->rows, cols = src->cols; in cvReprojectImageTo3D() local
2630 float* sbuf = (float*)cvStackAlloc( cols*sizeof(sbuf[0]) ); in cvReprojectImageTo3D()
2631 float* dbuf = (float*)cvStackAlloc( cols*3*sizeof(dbuf[0]) ); in cvReprojectImageTo3D()
2649 for( x = 0; x < cols; x++ ) in cvReprojectImageTo3D()
2656 for( x = 0; x < cols; x++, qx += q[0][0], qy += q[1][0], qz += q[2][0], qw += q[3][0] ) in cvReprojectImageTo3D()
2671 for( x = 0; x < cols*3; x++ ) in cvReprojectImageTo3D()