OpenCV  3.1.0
Open Source Computer Vision
Public Member Functions | Protected Attributes | List of all members
cv::TrackerTargetState Class Reference

Abstract base class for TrackerTargetState that represents a possible state of the target. More...

#include "tracker.hpp"

Inheritance diagram for cv::TrackerTargetState:
cv::TrackerStateEstimatorAdaBoosting::TrackerAdaBoostingTargetState cv::TrackerStateEstimatorMILBoosting::TrackerMILTargetState

Public Member Functions

virtual ~TrackerTargetState ()
 
int getTargetHeight () const
 Get the height of the target. More...
 
Point2f getTargetPosition () const
 Get the position. More...
 
int getTargetWidth () const
 Get the width of the target. More...
 
void setTargetHeight (int height)
 Set the height of the target. More...
 
void setTargetPosition (const Point2f &position)
 Set the position. More...
 
void setTargetWidth (int width)
 Set the width of the target. More...
 

Protected Attributes

int targetHeight
 
Point2f targetPosition
 
int targetWidth
 

Detailed Description

Abstract base class for TrackerTargetState that represents a possible state of the target.

See [124] \(\hat{x}^{i}_{k}\) all the states candidates.

Inherits this class with your Target state, In own implementation you can add scale variation, width, height, orientation, etc.

Constructor & Destructor Documentation

virtual cv::TrackerTargetState::~TrackerTargetState ( )
inlinevirtual

Member Function Documentation

int cv::TrackerTargetState::getTargetHeight ( ) const

Get the height of the target.

Returns
The height of the target
Point2f cv::TrackerTargetState::getTargetPosition ( ) const

Get the position.

Returns
The position
int cv::TrackerTargetState::getTargetWidth ( ) const

Get the width of the target.

Returns
The width of the target
void cv::TrackerTargetState::setTargetHeight ( int  height)

Set the height of the target.

Parameters
heightThe height of the target
void cv::TrackerTargetState::setTargetPosition ( const Point2f position)

Set the position.

Parameters
positionThe position
void cv::TrackerTargetState::setTargetWidth ( int  width)

Set the width of the target.

Parameters
widthThe width of the target

Member Data Documentation

int cv::TrackerTargetState::targetHeight
protected
Point2f cv::TrackerTargetState::targetPosition
protected
int cv::TrackerTargetState::targetWidth
protected

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