Affine2DEstimator0.h 923 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. class Affine2DEstimator0
  3. {
  4. public:
  5. Affine2DEstimator0();
  6. int runKernel( const CvMat* m1, const CvMat* m2, CvMat* model );
  7. int runRANSAC( const CvMat* m1, const CvMat* m2, CvMat* model,
  8. CvMat* mask, double threshold,
  9. double confidence=0.99, int maxIters=2000 );
  10. bool getSubset( const CvMat* m1, const CvMat* m2,
  11. CvMat* ms1, CvMat* ms2, int maxAttempts=1000 );
  12. bool checkSubset( const CvMat* ms1, int count );
  13. int findInliers( const CvMat* m1, const CvMat* m2,
  14. const CvMat* model, CvMat* error,
  15. CvMat* mask, double threshold );
  16. void computeReprojError( const CvMat* m1, const CvMat* m2, const CvMat* model, CvMat* error );
  17. protected:
  18. CvRNG rng;
  19. int modelPoints;
  20. CvSize modelSize;
  21. int maxBasicSolutions;
  22. bool checkPartialSubsets;
  23. };
  24. int estimateAffine2D0(cv::InputArray _from, cv::InputArray _to,
  25. cv::OutputArray _out, cv::OutputArray _inliers,
  26. double param1=3, double param2=0.99);