projection
Homography.hpp
Go to the documentation of this file.
1 #ifndef PROJECTION_HOMOGRAPHY_HPP__
2 #define PROJECTION_HOMOGRAPHY_HPP__
3 
4 #include <Eigen/Core>
5 #include <Eigen/Geometry>
6 #include <opencv2/imgproc/imgproc.hpp>
7 
8 namespace projection
9 {
10 
17 {
18  cv::Mat vcam;
19  Eigen::Matrix3f vcamMat;
20  Eigen::Isometry3f vcam2plane;
21 
22 public:
26  cv::Mat getVirtualImage();
27 
31  void clearVirtualImage();
32 
41  void init( int rows, int cols, float focal, const Eigen::Isometry3f& vcam2plane );
42 
43  void addImage( cv::Mat image, const::Eigen::Isometry3f& cam2plane, const Eigen::Matrix3f& camMat );
44 
45  Eigen::Matrix3f calcHomography( const Eigen::Matrix3f &R, const Eigen::Vector3f& t, const Eigen::Vector3f& n, float d ) const;
46 
47  Eigen::Matrix3f calcHomography( const Eigen::Isometry3f &trans, const Eigen::Vector3f &n, float dist ) const;
48 
58  Eigen::Matrix3f calcHomography( const Eigen::Isometry3f &camA2plane, const Eigen::Isometry3f &camB2plane ) const;
59 
60 };
61 
62 }
63 
64 #endif
void init(int rows, int cols, float focal, const Eigen::Isometry3f &vcam2plane)
Definition: Homography.cpp:7
Definition: Homography.hpp:16
void clearVirtualImage()
clear the virtual image
Definition: Homography.cpp:89
void addImage(cv::Mat image, const ::Eigen::Isometry3f &cam2plane, const Eigen::Matrix3f &camMat)
Definition: Homography.cpp:20
Eigen::Matrix3f calcHomography(const Eigen::Matrix3f &R, const Eigen::Vector3f &t, const Eigen::Vector3f &n, float d) const
Definition: Homography.cpp:58
cv::Mat getVirtualImage()
Definition: Homography.cpp:84
Definition: Homography.hpp:8