Public Member Functions | Protected Attributes | List of all members
VTEC::IBGHomographyOptimizerCvWrapper Class Referenceabstract

#include <ibg_cv.h>

Inheritance diagram for VTEC::IBGHomographyOptimizerCvWrapper:
Inheritance graph
[legend]

Public Member Functions

void getCurrentTemplate (cv::Mat &img)
 Gets the current template. More...
 
void getHomography (cv::Mat &H)
 Gets the homography. More...
 
std::vector< cv::Mat > getHomographySequence ()
 Gets the homography sequence. More...
 
std::vector< int > getNbIterations ()
 Gets the number of iterations. More...
 
void getReferenceTemplate (cv::Mat &img)
 Gets the reference template. More...
 
 IBGHomographyOptimizerCvWrapper ()
 Constructor. More...
 
virtual void initialize (const int max_nb_iter, const int max_nb_pyr_level, const double sampling_rate)=0
 Initiliazation of the optimizer. More...
 
double optimize (const cv::Mat &curr_image, cv::Mat &H, float &alpha, float &beta, int predictor)
 Optimization function. More...
 
void setHomography (const cv::Mat H)
 Sets the homography. More...
 
bool setReferenceTemplate (const cv::Mat &ref_image, const int posx, const int posy, const int sizex, const int sizey)
 Sets the reference template. More...
 

Protected Attributes

bool initialized_
 
IBGHomographyOptimizer * optimizer
 

Detailed Description

Definition at line 11 of file ibg_cv.h.

Constructor & Destructor Documentation

VTEC::IBGHomographyOptimizerCvWrapper::IBGHomographyOptimizerCvWrapper ( )

Constructor.

Definition at line 6 of file ibg_cv.cpp.

Member Function Documentation

void VTEC::IBGHomographyOptimizerCvWrapper::getCurrentTemplate ( cv::Mat &  img)

Gets the current template.

Parameters
imgThe image

Definition at line 99 of file ibg_cv.cpp.

void VTEC::IBGHomographyOptimizerCvWrapper::getHomography ( cv::Mat &  H)

Gets the homography.

Parameters
Hthe homography

Definition at line 113 of file ibg_cv.cpp.

std::vector< cv::Mat > VTEC::IBGHomographyOptimizerCvWrapper::getHomographySequence ( )
virtual

Gets the homography sequence.

Returns
The homography sequence.

Implements VTEC::HomographyOptimizerInterface.

Definition at line 74 of file ibg_cv.cpp.

std::vector< int > VTEC::IBGHomographyOptimizerCvWrapper::getNbIterations ( )
virtual

Gets the number of iterations.

Returns
The number of iterations.

Implements VTEC::HomographyOptimizerInterface.

Definition at line 61 of file ibg_cv.cpp.

void VTEC::IBGHomographyOptimizerCvWrapper::getReferenceTemplate ( cv::Mat &  img)

Gets the reference template.

Parameters
imgThe image

Definition at line 106 of file ibg_cv.cpp.

virtual void VTEC::IBGHomographyOptimizerCvWrapper::initialize ( const int  max_nb_iter,
const int  max_nb_pyr_level,
const double  sampling_rate 
)
pure virtual

Initiliazation of the optimizer.

Parameters
[in]max_nb_iterThe maximum number of iterator
[in]max_nb_pyr_levelThe maximum number of pyr level
[in]sampling_rateThe sampling rate

Implements VTEC::HomographyOptimizerInterface.

Implemented in VTEC::IBGStretchHomographyOptimizerCvWrapper, VTEC::IBGAffineHomographyOptimizerCvWrapper, and VTEC::IBGFullHomographyOptimizerCvWrapper.

double VTEC::IBGHomographyOptimizerCvWrapper::optimize ( const cv::Mat &  curr_image,
cv::Mat &  H,
float &  alpha,
float &  beta,
int  predictor 
)
virtual

Optimization function.

Parameters
[in]curr_imageThe curr image
HThe homography matrix
alphaThe alpha
betaThe beta
[in]predictorThe predictor
Returns
the ZNCC score

Implements VTEC::HomographyOptimizerInterface.

Definition at line 24 of file ibg_cv.cpp.

void VTEC::IBGHomographyOptimizerCvWrapper::setHomography ( const cv::Mat  H)

Sets the homography.

Parameters
[in]Hthe Homography matrix.

Definition at line 92 of file ibg_cv.cpp.

bool VTEC::IBGHomographyOptimizerCvWrapper::setReferenceTemplate ( const cv::Mat &  ref_image,
const int  posx,
const int  posy,
const int  sizex,
const int  sizey 
)
virtual

Sets the reference template.

Parameters
[in]ref_imageThe reference image
[in]posxThe upper left x coordinate of the template in the image
[in]posyThe upper left y coordinate of the template in the image
[in]sizexThe length in x of the template in the image.
[in]sizeyThe length in y of the template in the image.
Returns
true if success, false otherwise

Implements VTEC::HomographyOptimizerInterface.

Definition at line 11 of file ibg_cv.cpp.

Member Data Documentation

bool VTEC::IBGHomographyOptimizerCvWrapper::initialized_
protected

Definition at line 100 of file ibg_cv.h.

IBGHomographyOptimizer* VTEC::IBGHomographyOptimizerCvWrapper::optimizer
protected

Definition at line 98 of file ibg_cv.h.


The documentation for this class was generated from the following files:


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