1234567891011121314151617181920212223242526272829303132 |
- #pragma once
- class Affine2DEstimator
- {
- public:
- Affine2DEstimator();
- int runKernel( const CvMat* m1, const CvMat* m2, CvMat* model );
- int runRANSAC( const CvMat* m1, const CvMat* m2, CvMat* model,
- CvMat* mask, double threshold,
- double confidence=0.99, int maxIters=2000 );
- bool getSubset( const CvMat* m1, const CvMat* m2,
- CvMat* ms1, CvMat* ms2, int maxAttempts=1000 );
- bool checkSubset( const CvMat* ms1, int count );
- int findInliers( const CvMat* m1, const CvMat* m2,
- const CvMat* model, CvMat* error,
- CvMat* mask, double threshold );
- void computeReprojError( const CvMat* m1, const CvMat* m2, const CvMat* model, CvMat* error );
- double getDistortion( const CvMat* m1);
- double getMinHeight( const CvMat* m1, const CvMat* m2);
- protected:
- CvRNG rng;
- int modelPoints;
- CvSize modelSize;
- int maxBasicSolutions;
- bool checkPartialSubsets;
- };
- int estimateAffine2D(cv::InputArray _from, cv::InputArray _to,
- cv::OutputArray _out, cv::OutputArray _inliers,
- double param1=3, double param2=0.99);
|