OpenCV  4.1.0
Open Source Computer Vision
Public Member Functions | List of all members
cv::TrackerStateEstimatorMILBoosting::TrackerMILTargetState Class Reference

#include <opencv2/tracking/tracker.hpp>

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

Public Member Functions

 TrackerMILTargetState (const Point2f &position, int width, int height, bool foreground, const Mat &features)
 Constructor.
 
 ~TrackerMILTargetState ()
 Destructor.
 
Mat getFeatures () const
 Get the features extracted.
 
bool isTargetFg () const
 Get the label. Return true for target foreground, false for background.
 
void setFeatures (const Mat &features)
 Set the features extracted from TrackerFeatureSet.
 
void setTargetFg (bool foreground)
 Set label: true for target foreground, false for background.
 
- Public Member Functions inherited from cv::TrackerTargetState
virtual ~TrackerTargetState ()
 
int getTargetHeight () const
 Get the height of the target.
 
Point2f getTargetPosition () const
 Get the position.
 
int getTargetWidth () const
 Get the width of the target.
 
void setTargetHeight (int height)
 Set the height of the target.
 
void setTargetPosition (const Point2f &position)
 Set the position.
 
void setTargetWidth (int width)
 Set the width of the target.
 

Additional Inherited Members

- Protected Attributes inherited from cv::TrackerTargetState
int targetHeight
 
Point2f targetPosition
 
int targetWidth
 

Detailed Description

Implementation of the target state for TrackerStateEstimatorMILBoosting

Constructor & Destructor Documentation

cv::TrackerStateEstimatorMILBoosting::TrackerMILTargetState::TrackerMILTargetState ( const Point2f position,
int  width,
int  height,
bool  foreground,
const Mat features 
)

Constructor.

Parameters
positionTop left corner of the bounding box
widthWidth of the bounding box
heightHeight of the bounding box
foregroundlabel for target or background
featuresfeatures extracted
cv::TrackerStateEstimatorMILBoosting::TrackerMILTargetState::~TrackerMILTargetState ( )
inline

Destructor.

Member Function Documentation

Mat cv::TrackerStateEstimatorMILBoosting::TrackerMILTargetState::getFeatures ( ) const

Get the features extracted.

bool cv::TrackerStateEstimatorMILBoosting::TrackerMILTargetState::isTargetFg ( ) const

Get the label. Return true for target foreground, false for background.

void cv::TrackerStateEstimatorMILBoosting::TrackerMILTargetState::setFeatures ( const Mat features)

Set the features extracted from TrackerFeatureSet.

Parameters
featuresThe features extracted
void cv::TrackerStateEstimatorMILBoosting::TrackerMILTargetState::setTargetFg ( bool  foreground)

Set label: true for target foreground, false for background.

Parameters
foregroundLabel for background/foreground

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