1 #ifndef VTEC_CV_OPTIMIZER_HOMOGRAPHY_OPTIMIZER_INTERFACE_HEADER 2 #define VTEC_CV_OPTIMIZER_HOMOGRAPHY_OPTIMIZER_INTERFACE_HEADER 21 virtual void initialize(
const int max_nb_iter,
const int max_nb_pyr_level,
const double sampling_rate) = 0;
34 virtual bool setReferenceTemplate(
const cv::Mat& ref_image,
const int posx,
const int posy,
const int sizex,
48 virtual double optimize(
const cv::Mat& curr_image, cv::Mat& H,
float& alpha,
float& beta,
int predictor) = 0;
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.
virtual std::vector< cv::Mat > getHomographySequence()=0
Gets the homography sequence.