Lines Matching refs:CvMat
63 virtual int runKernel( const CvMat* m1, const CvMat* m2, CvMat* model )=0;
64 virtual bool runLMeDS( const CvMat* m1, const CvMat* m2, CvMat* model,
65 CvMat* mask, double confidence=0.99, int maxIters=1000 );
66 virtual bool runRANSAC( const CvMat* m1, const CvMat* m2, CvMat* model,
67 CvMat* mask, double threshold,
69 virtual bool refine( const CvMat*, const CvMat*, CvMat*, int ) { return true; }
73 virtual void computeReprojError( const CvMat* m1, const CvMat* m2,
74 const CvMat* model, CvMat* error ) = 0;
75 virtual int findInliers( const CvMat* m1, const CvMat* m2,
76 const CvMat* model, CvMat* error,
77 CvMat* mask, double threshold );
78 virtual bool getSubset( const CvMat* m1, const CvMat* m2,
79 CvMat* ms1, CvMat* ms2, int maxAttempts=1000 );
80 virtual bool checkSubset( const CvMat* ms1, int count );
109 int CvModelEstimator2::findInliers( const CvMat* m1, const CvMat* m2,
110 const CvMat* model, CvMat* _err,
111 CvMat* _mask, double threshold )
162 bool CvModelEstimator2::runRANSAC( const CvMat* m1, const CvMat* m2, CvMat* model,
163 CvMat* mask, double reprojThreshold,
167 CvMat* mask0 = mask, *tmask = 0, *t;
168 CvMat* models = 0, *err = 0;
169 CvMat *ms1 = 0, *ms2 = 0;
194 ms1 = (CvMat*)m1;
195 ms2 = (CvMat*)m2;
217 CvMat model_i;
257 bool CvModelEstimator2::runLMeDS( const CvMat* m1, const CvMat* m2, CvMat* model,
258 CvMat* mask, double confidence, int maxIters )
262 CvMat* models = 0;
263 CvMat *ms1 = 0, *ms2 = 0;
264 CvMat* err = 0;
290 ms1 = (CvMat*)m1;
291 ms2 = (CvMat*)m2;
316 CvMat model_i;
353 bool CvModelEstimator2::getSubset( const CvMat* m1, const CvMat* m2,
354 CvMat* ms1, CvMat* ms2, int maxAttempts )
396 bool CvModelEstimator2::checkSubset( const CvMat* m, int count )
429 virtual int runKernel( const CvMat* m1, const CvMat* m2, CvMat* model );
430 virtual bool refine( const CvMat* m1, const CvMat* m2,
431 CvMat* model, int maxIters );
433 virtual void computeReprojError( const CvMat* m1, const CvMat* m2,
434 const CvMat* model, CvMat* error );
444 int CvHomographyEstimator::runKernel( const CvMat* m1, const CvMat* m2, CvMat* H )
451 CvMat _LtL = cvMat( 9, 9, CV_64F, LtL );
452 CvMat _W = cvMat( 9, 9, CV_64F, W );
453 CvMat _V = cvMat( 9, 9, CV_64F, V );
454 CvMat _H0 = cvMat( 3, 3, CV_64F, V[8] );
455 CvMat _Htemp = cvMat( 3, 3, CV_64F, V[7] );
480 CvMat _invHnorm = cvMat( 3, 3, CV_64FC1, invHnorm );
481 CvMat _Hnorm2 = cvMat( 3, 3, CV_64FC1, Hnorm2 );
506 void CvHomographyEstimator::computeReprojError( const CvMat* m1, const CvMat* m2,
507 const CvMat* model, CvMat* _err )
524 bool CvHomographyEstimator::refine( const CvMat* m1, const CvMat* m2, CvMat* model, int maxIters )
530 CvMat modelPart = cvMat( solver.param->rows, solver.param->cols, model->type, model->data.ptr );
535 const CvMat* _param = 0;
536 CvMat *_JtJ = 0, *_JtErr = 0;
576 cvFindHomography( const CvMat* objectPoints, const CvMat* imagePoints,
577 CvMat* __H, int method, double ransacReprojThreshold,
578 CvMat* mask )
582 CvMat *m = 0, *M = 0, *tempMask = 0;
589 CvMat _H = cvMat( 3, 3, CV_64FC1, H );
663 virtual int runKernel( const CvMat* m1, const CvMat* m2, CvMat* model );
664 virtual int run7Point( const CvMat* m1, const CvMat* m2, CvMat* model );
665 virtual int run8Point( const CvMat* m1, const CvMat* m2, CvMat* model );
667 virtual void computeReprojError( const CvMat* m1, const CvMat* m2,
668 const CvMat* model, CvMat* error );
678 int CvFMEstimator::runKernel( const CvMat* m1, const CvMat* m2, CvMat* model )
683 int CvFMEstimator::run7Point( const CvMat* _m1, const CvMat* _m2, CvMat* _fmatrix )
688 CvMat A = cvMat( 7, 9, CV_64F, a );
689 CvMat V = cvMat( 9, 9, CV_64F, v );
690 CvMat W = cvMat( 7, 1, CV_64F, w );
691 CvMat coeffs = cvMat( 1, 4, CV_64F, c );
692 CvMat roots = cvMat( 1, 3, CV_64F, r );
791 int CvFMEstimator::run8Point( const CvMat* _m1, const CvMat* _m2, CvMat* _fmatrix )
794 CvMat W = cvMat( 1, 9, CV_64F, w );
795 CvMat V = cvMat( 9, 9, CV_64F, v );
796 CvMat A = cvMat( 9, 9, CV_64F, a );
797 CvMat U, F0, TF;
870 F0 = cvMat( 3, 3, CV_64F, v + 9*8 ); // take the last column of v as a solution of Af = 0
894 CvMat T0, T1;
913 void CvFMEstimator::computeReprojError( const CvMat* _m1, const CvMat* _m2,
914 const CvMat* model, CvMat* _err )
946 cvFindFundamentalMat( const CvMat* points1, const CvMat* points2,
947 CvMat* fmatrix, int method,
948 double param1, double param2, CvMat* mask )
951 CvMat *m1 = 0, *m2 = 0, *tempMask = 0;
958 CvMat _F3x3 = cvMat( 3, 3, CV_64FC1, F ), _F9x3 = cvMat( 9, 3, CV_64FC1, F );
1029 cvComputeCorrespondEpilines( const CvMat* points, int pointImageID,
1030 const CvMat* fmatrix, CvMat* lines )
1042 CvMat F = cvMat( 3, 3, CV_64F, f );
1191 cvConvertPointsHomogeneous( const CvMat* src, CvMat* dst )
1193 CvMat* temp = 0;
1194 CvMat* denom = 0;
1201 CvMat _src, _dst, _ones;
1202 CvMat* ones = 0;