homography_optimizer_interface.h
Go to the documentation of this file.
1 #ifndef VTEC_CV_OPTIMIZER_HOMOGRAPHY_OPTIMIZER_INTERFACE_HEADER
2 #define VTEC_CV_OPTIMIZER_HOMOGRAPHY_OPTIMIZER_INTERFACE_HEADER
3 
4 #include <cv_bridge/cv_bridge.h>
5 
6 namespace VTEC
7 {
12 {
13 public:
21  virtual void initialize(const int max_nb_iter, const int max_nb_pyr_level, const double sampling_rate) = 0;
22 
34  virtual bool setReferenceTemplate(const cv::Mat& ref_image, const int posx, const int posy, const int sizex,
35  const int sizey) = 0;
36 
48  virtual double optimize(const cv::Mat& curr_image, cv::Mat& H, float& alpha, float& beta, int predictor) = 0;
49 
55  virtual std::vector<int> getNbIterations() = 0;
56 
62  virtual std::vector<cv::Mat> getHomographySequence() = 0;
63 
64 }; /* class HomographyOptimizerInterface */
65 
66 } // namespace VTEC
67 
68 #endif /* VTEC_CV_OPTIMIZER_HOMOGRAPHY_OPTIMIZER_INTERFACE_HEADER */
Class for FULL homography optimizer interface. 8 degrees of freedom in the homography.
virtual bool setReferenceTemplate(const cv::Mat &ref_image, const int posx, const int posy, const int sizex, const int sizey)=0
Sets the reference template.
virtual void initialize(const int max_nb_iter, const int max_nb_pyr_level, const double sampling_rate)=0
initializes the optimizer, building the image pyramid.
virtual std::vector< int > getNbIterations()=0
Gets the number of iterations.
virtual double optimize(const cv::Mat &curr_image, cv::Mat &H, float &alpha, float &beta, int predictor)=0
Optimization function.
Definition: draw.h:3
virtual std::vector< cv::Mat > getHomographySequence()=0
Gets the homography sequence.


cv_wrapper
Author(s):
autogenerated on Sun Dec 16 2018 03:14:36