Lines Matching refs:CvMat
61 CV_IMPL void cvCalcMatMulDeriv( const CvMat* A, const CvMat* B, CvMat* dABdA, CvMat* dABdB )
149 CV_IMPL void cvComposeRT( const CvMat* _rvec1, const CvMat* _tvec1,
150 const CvMat* _rvec2, const CvMat* _tvec2,
151 CvMat* _rvec3, CvMat* _tvec3,
152 CvMat* dr3dr1, CvMat* dr3dt1,
153 CvMat* dr3dr2, CvMat* dr3dt2,
154 CvMat* dt3dr1, CvMat* dt3dt1,
155 CvMat* dt3dr2, CvMat* dt3dt2 )
159 CvMat r1 = cvMat(3,1,CV_64F,_r1), r2 = cvMat(3,1,CV_64F,_r2);
160 CvMat R1 = cvMat(3,3,CV_64F,_R1), R2 = cvMat(3,3,CV_64F,_R2);
161 CvMat dR1dr1 = cvMat(9,3,CV_64F,_d1), dR2dr2 = cvMat(9,3,CV_64F,_d2);
180 CvMat r3 = cvMat(3,1,CV_64F,_r3), R3 = cvMat(3,3,CV_64F,_R3);
181 CvMat dR3dR1 = cvMat(9,9,CV_64F,_dR3dR1), dR3dR2 = cvMat(9,9,CV_64F,_dR3dR2);
182 CvMat dr3dR3 = cvMat(3,9,CV_64F,_dr3dR3);
183 CvMat W1 = cvMat(3,9,CV_64F,_W1), W2 = cvMat(3,3,CV_64F,_W2);
216 CvMat t1 = cvMat(3,1,CV_64F,_t1), t2 = cvMat(3,1,CV_64F,_t2);
217 CvMat t3 = cvMat(3,1,CV_64F,_t3);
218 CvMat dxdR2 = cvMat(3, 9, CV_64F, _dxdR2);
219 CvMat dxdt1 = cvMat(3, 3, CV_64F, _dxdt1);
220 CvMat W3 = cvMat(3, 3, CV_64F, _W3);
251 CV_IMPL int cvRodrigues2( const CvMat* src, CvMat* dst, CvMat* jacobian )
256 CvMat matJ = cvMat( 3, 9, CV_64F, J );
337 CvMat matR = cvMat( 3, 3, CV_64F, R );
369 CvMat matR = cvMat( 3, 3, CV_64F, R );
370 CvMat matU = cvMat( 3, 3, CV_64F, U );
371 CvMat matV = cvMat( 3, 3, CV_64F, V );
372 CvMat matW = cvMat( 3, 1, CV_64F, W );
469 CvMat _dvardR = cvMat( 5, 9, CV_64FC1, dvardR );
470 CvMat _dvar2dvar = cvMat( 4, 5, CV_64FC1, dvar2dvar );
471 CvMat _domegadvar2 = cvMat( 3, 4, CV_64FC1, domegadvar2 );
473 CvMat _t0 = cvMat( 3, 5, CV_64FC1, t0 );
511 CvMat _Jf = cvMat( matJ.rows, matJ.cols, CV_32FC1, Jf );
528 CV_IMPL void cvProjectPoints2( const CvMat* objectPoints,
529 const CvMat* r_vec,
530 const CvMat* t_vec,
531 const CvMat* A,
532 const CvMat* distCoeffs,
533 CvMat* imagePoints, CvMat* dpdr,
534 CvMat* dpdt, CvMat* dpdf,
535 CvMat* dpdc, CvMat* dpdk,
538 Ptr<CvMat> matM, _m;
539 Ptr<CvMat> _dpdr, _dpdt, _dpdc, _dpdf, _dpdk;
546 CvMat _r, _t, _a = cvMat( 3, 3, CV_64F, a ), _k;
547 CvMat matR = cvMat( 3, 3, CV_64F, R ), _dRdr = cvMat( 3, 9, CV_64F, dRdr );
608 _r = cvMat( 3, 1, CV_64FC1, r );
615 _r = cvMat( r_vec->rows, r_vec->cols, CV_MAKETYPE(CV_64F,CV_MAT_CN(r_vec->type)), r );
626 _t = cvMat( t_vec->rows, t_vec->cols, CV_MAKETYPE(CV_64F,CV_MAT_CN(t_vec->type)), t );
652 _k = cvMat( distCoeffs->rows, distCoeffs->cols,
923 CV_IMPL void cvFindExtrinsicCameraParams2( const CvMat* objectPoints,
924 const CvMat* imagePoints, const CvMat* A,
925 const CvMat* distCoeffs, CvMat* rvec, CvMat* tvec,
929 Ptr<CvMat> matM, _Mxy, _m, _mn, matL;
936 CvMat matA = cvMat( 3, 3, CV_64F, a );
937 CvMat _Ar = cvMat( 3, 3, CV_64F, ar );
938 CvMat matR = cvMat( 3, 3, CV_64F, R );
939 CvMat _r = cvMat( 3, 1, CV_64F, param );
940 CvMat _t = cvMat( 3, 1, CV_64F, param + 3 );
941 CvMat _Mc = cvMat( 1, 3, CV_64F, Mc.val );
942 CvMat _MM = cvMat( 3, 3, CV_64F, MM );
943 CvMat matU = cvMat( 3, 3, CV_64F, U );
944 CvMat matV = cvMat( 3, 3, CV_64F, V );
945 CvMat matW = cvMat( 3, 1, CV_64F, W );
946 CvMat _param = cvMat( 6, 1, CV_64F, param );
947 CvMat _dpdr, _dpdt;
975 CvMat _r_temp = cvMat(rvec->rows, rvec->cols,
977 CvMat _t_temp = cvMat(tvec->rows, tvec->cols,
994 CvMat* R_transform = &matV;
995 CvMat T_transform = cvMat( 3, 1, CV_64F, tt );
996 CvMat matH = cvMat( 3, 3, CV_64F, h );
997 CvMat _h1, _h2, _h3;
1051 CvMat _LL = cvMat( 12, 12, CV_64F, LL );
1052 CvMat _LW = cvMat( 12, 1, CV_64F, LW );
1053 CvMat _LV = cvMat( 12, 12, CV_64F, LV );
1054 CvMat _RRt, _RR, _tt;
1082 _RRt = cvMat( 3, 4, CV_64F, LV + 11*12 );
1104 CvMat *matJ = 0, *_err = 0;
1105 const CvMat *__param = 0;
1128 _r = cvMat( rvec->rows, rvec->cols,
1130 _t = cvMat( tvec->rows, tvec->cols,
1138 CV_IMPL void cvInitIntrinsicParams2D( const CvMat* objectPoints,
1139 const CvMat* imagePoints, const CvMat* npoints,
1140 CvSize imageSize, CvMat* cameraMatrix,
1143 Ptr<CvMat> matA, _b, _allH;
1148 CvMat _a = cvMat( 3, 3, CV_64F, a );
1149 CvMat matH = cvMat( 3, 3, CV_64F, H );
1150 CvMat _f = cvMat( 2, 1, CV_64F, f );
1179 CvMat _m, matM;
1229 CV_IMPL double cvCalibrateCamera2( const CvMat* objectPoints,
1230 const CvMat* imagePoints, const CvMat* npoints,
1231 CvSize imageSize, CvMat* cameraMatrix, CvMat* distCoeffs,
1232 CvMat* rvecs, CvMat* tvecs, int flags, CvTermCriteria termCrit )
1235 Ptr<CvMat> matM, _m, _Ji, _Je, _err;
1240 CvMat matA = cvMat(3, 3, CV_64F, A), _k;
1325 _k = cvMat( distCoeffs->rows, distCoeffs->cols, CV_MAKETYPE(CV_64F,CV_MAT_CN(distCoeffs->type)), k);
1433 CvMat _Mi, _mi, _ri, _ti;
1448 const CvMat* _param = 0;
1449 CvMat *_JtJ = 0, *_JtErr = 0;
1472 CvMat _Mi, _mi, _ri, _ti, _dpdr, _dpdt, _dpdf, _dpdc, _dpdk, _mp, _part;
1532 CvMat src, dst;
1535 src = cvMat( 3, 1, CV_64F, solver.param->data.db + NINTRINSIC + i*6 );
1538 dst = cvMat( 3, 3, CV_MAT_DEPTH(rvecs->type),
1545 dst = cvMat( 3, 1, CV_MAT_DEPTH(rvecs->type), rvecs->rows == 1 ?
1553 src = cvMat( 3, 1, CV_64F, solver.param->data.db + NINTRINSIC + i*6 + 3 );
1554 dst = cvMat( 3, 1, CV_MAT_DEPTH(tvecs->type), tvecs->rows == 1 ?
1565 void cvCalibrationMatrixValues( const CvMat *calibMatr, CvSize imgSize,
1635 double cvStereoCalibrate( const CvMat* _objectPoints, const CvMat* _imagePoints1,
1636 const CvMat* _imagePoints2, const CvMat* _npoints,
1637 CvMat* _cameraMatrix1, CvMat* _distCoeffs1,
1638 CvMat* _cameraMatrix2, CvMat* _distCoeffs2,
1639 CvSize imageSize, CvMat* matR, CvMat* matT,
1640 CvMat* matE, CvMat* matF,
1645 Ptr<CvMat> npoints, err, J_LR, Je, Ji, imagePoints[2], objectPoints, RT0;
1650 CvMat K[2], Dist[2], om_LR, T_LR;
1651 CvMat R_LR = cvMat(3, 3, CV_64F, rlr);
1684 const CvMat* points = k == 0 ? _imagePoints1 : _imagePoints2;
1685 const CvMat* cameraMatrix = k == 0 ? _cameraMatrix1 : _cameraMatrix2;
1686 const CvMat* distCoeffs = k == 0 ? _distCoeffs1 : _distCoeffs2;
1694 K[k] = cvMat(3,3,CV_64F,A[k]);
1695 Dist[k] = cvMat(1,12,CV_64F,dk[k]);
1708 CvMat tdist = cvMat( distCoeffs->rows, distCoeffs->cols,
1801 CvMat objpt_i;
1803 CvMat om[2], R[2], T[2], imgpt_i[2];
1805 objpt_i = cvMat(1, ni, CV_64FC3, objectPoints->data.db + ofs*3);
1808 imgpt_i[k] = cvMat(1, ni, CV_64FC2, imagePoints[k]->data.db + ofs*2);
1809 om[k] = cvMat(3, 1, CV_64F, _om[k]);
1810 R[k] = cvMat(3, 3, CV_64F, r[k]);
1811 T[k] = cvMat(3, 1, CV_64F, t[k]);
1863 om_LR = cvMat(3, 1, CV_64F, solver.param->data.db);
1864 T_LR = cvMat(3, 1, CV_64F, solver.param->data.db + 3);
1868 const CvMat* param = 0;
1869 CvMat tmpimagePoints;
1870 CvMat *JtJ = 0, *JtErr = 0;
1874 CvMat dr3dr1 = cvMat(3, 3, CV_64F, _dr3dr1);
1875 CvMat dr3dr2 = cvMat(3, 3, CV_64F, _dr3dr2);
1876 //CvMat dt3dr1 = cvMat(3, 3, CV_64F, _dt3dr1);
1877 CvMat dt3dr2 = cvMat(3, 3, CV_64F, _dt3dr2);
1878 CvMat dt3dt1 = cvMat(3, 3, CV_64F, _dt3dt1);
1879 CvMat dt3dt2 = cvMat(3, 3, CV_64F, _dt3dt2);
1880 CvMat om[2], T[2], imgpt_i[2];
1881 CvMat dpdrot_hdr, dpdt_hdr, dpdf_hdr, dpdc_hdr, dpdk_hdr;
1882 CvMat *dpdrot = &dpdrot_hdr, *dpdt = &dpdt_hdr, *dpdf = 0, *dpdc = 0, *dpdk = 0;
1889 om[1] = cvMat(3,1,CV_64F,_omR);
1890 T[1] = cvMat(3,1,CV_64F,_tR);
1937 CvMat objpt_i, _part;
1939 om[0] = cvMat(3,1,CV_64F,solver.param->data.db+(i+1)*6);
1940 T[0] = cvMat(3,1,CV_64F,solver.param->data.db+(i+1)*6+3);
1948 objpt_i = cvMat(1, ni, CV_64FC3, objectPoints->data.db + ofs*3);
1961 imgpt_i[k] = cvMat(1, ni, CV_64FC2, imagePoints[k]->data.db + ofs*2);
1984 CvMat de3dr3 = cvMat( 1, 3, CV_64F, Je->data.ptr + Je->step*p );
1985 CvMat de3dt3 = cvMat( 1, 3, CV_64F, de3dr3.data.db + 3 );
1986 CvMat de3dr2 = cvMat( 1, 3, CV_64F, J_LR->data.ptr + J_LR->step*p );
1987 CvMat de3dt2 = cvMat( 1, 3, CV_64F, de3dr2.data.db + 3 );
1989 CvMat de3dr1 = cvMat( 1, 3, CV_64F, _de3dr1 );
1990 CvMat de3dt1 = cvMat( 1, 3, CV_64F, _de3dt1 );
2057 CvMat* distCoeffs = k == 0 ? _distCoeffs1 : _distCoeffs2;
2058 CvMat tdist = cvMat( distCoeffs->rows, distCoeffs->cols,
2073 CvMat Tx = cvMat(3, 3, CV_64F, tx);
2075 CvMat E = cvMat(3, 3, CV_64F, e);
2076 CvMat F = cvMat(3, 3, CV_64F, f);
2083 CvMat iK = cvMat(3, 3, CV_64F, ik);
2097 icvGetRectangles( const CvMat* cameraMatrix, const CvMat* distCoeffs,
2098 const CvMat* R, const CvMat* newCameraMatrix, CvSize imgSize,
2103 cv::Ptr<CvMat> _pts(cvCreateMat(1, N*N, CV_32FC2));
2140 void cvStereoRectify( const CvMat* _cameraMatrix1, const CvMat* _cameraMatrix2,
2141 const CvMat* _distCoeffs1, const CvMat* _distCoeffs2,
2142 CvSize imageSize, const CvMat* matR, const CvMat* matT,
2143 CvMat* _R1, CvMat* _R2, CvMat* _P1, CvMat* _P2,
2144 CvMat* matQ, int flags, double alpha, CvSize newImgSize,
2151 CvMat om = cvMat(3, 1, CV_64F, _om);
2152 CvMat t = cvMat(3, 1, CV_64F, _t);
2153 CvMat uu = cvMat(3, 1, CV_64F, _uu);
2154 CvMat r_r = cvMat(3, 3, CV_64F, _r_r);
2155 CvMat pp = cvMat(3, 4, CV_64F, _pp);
2156 CvMat ww = cvMat(3, 1, CV_64F, _ww); // temps
2157 CvMat wR = cvMat(3, 3, CV_64F, _wr);
2158 CvMat Z = cvMat(3, 1, CV_64F, _z);
2159 CvMat Ri = cvMat(3, 3, CV_64F, _ri);
2195 const CvMat* A = k == 0 ? _cameraMatrix1 : _cameraMatrix2;
2196 const CvMat* Dk = k == 0 ? _distCoeffs1 : _distCoeffs2;
2207 const CvMat* A = k == 0 ? _cameraMatrix1 : _cameraMatrix2;
2208 const CvMat* Dk = k == 0 ? _distCoeffs1 : _distCoeffs2;
2211 CvMat pts = cvMat(1, 4, CV_32FC2, _pts);
2212 CvMat pts_3 = cvMat(1, 4, CV_32FC3, _pts_3);
2225 CvMat A_tmp = cvMat(3, 3, CV_64F, _a_tmp);
2344 CvMat Q = cvMat(4, 4, CV_64F, q);
2350 void cvGetOptimalNewCameraMatrix( const CvMat* cameraMatrix, const CvMat* distCoeffs,
2352 CvMat* newCameraMatrix, CvSize newImgSize,
2359 CvMat matM = cvMat(3, 3, CV_64F, M);
2432 const CvMat* _points1, const CvMat* _points2,
2433 const CvMat* F0, CvSize imgSize,
2434 CvMat* _H1, CvMat* _H2, double threshold )
2436 Ptr<CvMat> _m1, _m2, _lines1, _lines2;
2441 CvMat E2 = cvMat( 3, 1, CV_64F, e2 );
2442 CvMat U = cvMat( 3, 3, CV_64F, u );
2443 CvMat V = cvMat( 3, 3, CV_64F, v );
2444 CvMat W = cvMat( 3, 3, CV_64F, w );
2445 CvMat F = cvMat( 3, 3, CV_64F, f );
2446 CvMat H1 = cvMat( 3, 3, CV_64F, h1 );
2447 CvMat H2 = cvMat( 3, 3, CV_64F, h2 );
2448 CvMat H0 = cvMat( 3, 3, CV_64F, h0 );
2469 cvSVD( (CvMat*)&F, &W, &U, &V, CV_SVD_U_T + CV_SVD_V_T );
2529 CvMat T = cvMat(3, 3, CV_64F, t);
2542 CvMat R = cvMat(3, 3, CV_64F, r);
2552 CvMat K = cvMat(3, 3, CV_64F, k);
2562 CvMat iT = cvMat( 3, 3, CV_64F, it );
2580 CvMat E2_x = cvMat(3, 3, CV_64F, e2_x);
2581 CvMat E2_111 = cvMat(3, 3, CV_64F, e2_111);
2584 CvMat E1=cvMat(3, 1, CV_64F, V.data.db+6);
2589 CvMat A = cvMat( 1, npoints, CV_64FC3, lines1 ), BxBy, B;
2591 CvMat X = cvMat( 3, 1, CV_64F, x );
2604 CvMat Ha = cvMat(3, 3, CV_64F, ha);
2611 CvMat MM = cvMat(3, 3, CV_64F, mm);
2730 CvArr* _3dImage, const CvMat* matQ,
2745 cvRQDecomp3x3( const CvMat *matrixM, CvMat *matrixR, CvMat *matrixQ,
2746 CvMat *matrixQx, CvMat *matrixQy, CvMat *matrixQz,
2750 CvMat M = cvMat(3, 3, CV_64F, matM);
2751 CvMat R = cvMat(3, 3, CV_64F, matR);
2752 CvMat Q = cvMat(3, 3, CV_64F, matQ);
2775 CvMat Qx = cvMat(3, 3, CV_64F, _Qx);
2794 CvMat Qy = cvMat(3, 3, CV_64F, _Qy);
2814 CvMat Qz = cvMat(3, 3, CV_64F, _Qz);
2911 cvDecomposeProjectionMatrix( const CvMat *projMatr, CvMat *calibMatr,
2912 CvMat *rotMatr, CvMat *posVect,
2913 CvMat *rotMatrX, CvMat *rotMatrY,
2914 CvMat *rotMatrZ, CvPoint3D64f *eulerAngles)
2917 CvMat tmpProjMatr = cvMat(4, 4, CV_64F, tmpProjMatrData);
2918 CvMat tmpMatrixD = cvMat(4, 4, CV_64F, tmpMatrixDData);
2919 CvMat tmpMatrixV = cvMat(4, 4, CV_64F, tmpMatrixVData);
2920 CvMat tmpMatrixM;
3057 CvMat _csrc = src, _cdst = dst, _cjacobian;
3074 CvMat matA = A, matB = B, c_dABdA = _dABdA.getMat(), c_dABdB = _dABdB.getMat();
3094 CvMat c_rvec1 = rvec1, c_tvec1 = tvec1, c_rvec2 = rvec2,
3096 CvMat c_dr3dr1, c_dr3dt1, c_dr3dr2, c_dr3dt2, c_dt3dr1, c_dt3dt1, c_dt3dr2, c_dt3dt2;
3097 CvMat *p_dr3dr1=0, *p_dr3dt1=0, *p_dr3dr2=0, *p_dr3dt2=0, *p_dt3dr1=0, *p_dt3dt1=0, *p_dt3dr2=0, *p_dt3dt2=0;
3166 CvMat dpdrot, dpdt, dpdf, dpdc, dpddist;
3167 CvMat
3170 CvMat c_imagePoints = _ipoints.getMat();
3171 CvMat c_objectPoints = opoints;
3175 CvMat c_cameraMatrix = cameraMatrix;
3176 CvMat c_rvec = rvec, c_tvec = tvec;
3183 CvMat c_distCoeffs = distCoeffs;
3208 CvMat _objPt = objPt, _imgPt = imgPt, _npoints = npoints, _cameraMatrix = cameraMatrix;
3234 CvMat c_objPt = objPt, c_imgPt = imgPt, c_npoints = npoints;
3235 CvMat c_cameraMatrix = cameraMatrix, c_distCoeffs = distCoeffs;
3236 CvMat c_rvecM = rvecM, c_tvecM = tvecM;
3277 CvMat c_cameraMatrix = cameraMatrix;
3314 CvMat c_objPt = objPt, c_imgPt = imgPt, c_imgPt2 = imgPt2, c_npoints = npoints;
3315 CvMat c_cameraMatrix1 = cameraMatrix1, c_distCoeffs1 = distCoeffs1;
3316 CvMat c_cameraMatrix2 = cameraMatrix2, c_distCoeffs2 = distCoeffs2;
3317 CvMat c_matR = _Rmat.getMat(), c_matT = _Tmat.getMat(), c_matE, c_matF, *p_matE = 0, *p_matF = 0;
3355 CvMat c_cameraMatrix1 = cameraMatrix1;
3356 CvMat c_cameraMatrix2 = cameraMatrix2;
3357 CvMat c_distCoeffs1 = distCoeffs1;
3358 CvMat c_distCoeffs2 = distCoeffs2;
3359 CvMat c_R = Rmat, c_T = Tmat;
3366 CvMat c_R1 = _Rmat1.getMat(), c_R2 = _Rmat2.getMat(), c_P1 = _Pmat1.getMat(), c_P2 = _Pmat2.getMat();
3367 CvMat c_Q, *p_Q = 0;
3389 CvMat c_pt1 = points1, c_pt2 = points2;
3390 CvMat c_F, *p_F=0, c_H1 = _Hmat1.getMat(), c_H2 = _Hmat2.getMat();
3402 CvMat c_cameraMatrix = cameraMatrix, c_distCoeffs = distCoeffs;
3405 CvMat c_newCameraMatrix = newCameraMatrix;
3426 CvMat matM = M, matR = _Rmat.getMat(), matQ = _Qmat.getMat(), Qx, Qy, Qz, *pQx=0, *pQy=0, *pQz=0;
3457 CvMat c_projMatrix = projMatrix, c_cameraMatrix = _cameraMatrix.getMat();
3458 CvMat c_rotMatrix = _rotMatrix.getMat(), c_transVect = _transVect.getMat();
3459 CvMat c_rotMatrixX, *p_rotMatrixX = 0;
3460 CvMat c_rotMatrixY, *p_rotMatrixY = 0;
3461 CvMat c_rotMatrixZ, *p_rotMatrixZ = 0;