Interpolator.h 755 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // Created by zx on 22-12-18.
  3. //
  4. #ifndef TRIANGLE_MEASURE__CALIBER_H_
  5. #define TRIANGLE_MEASURE__CALIBER_H_
  6. #include "Steger.h"
  7. typedef struct {
  8. double x;
  9. double y;
  10. double z;
  11. }CalibPoint;
  12. class Interpolator
  13. {
  14. public:
  15. Interpolator();
  16. void AddImage(cv::Mat image,double distance);
  17. cv::Mat Calib3();
  18. cv::Mat Calib4();
  19. static std::vector<cv::Point3d> predict3(cv::Mat image,cv::Mat cameraMatrix, cv::Mat distCoeffs,cv::Mat P);
  20. static std::vector<cv::Point3d> predict4(cv::Mat image,cv::Mat cameraMatrix, cv::Mat distCoeffs,cv::Mat P);
  21. static cv::Mat undistored_image(cv::Mat image,cv::Mat cameraMatrix, cv::Mat distCoeffs);
  22. protected:
  23. std::vector<CalibPoint> samples_;
  24. };
  25. #endif //TRIANGLE_MEASURE__CALIBER_H_