Class cv::detail::tracking::TrackerContribFeatureHAAR#

TrackerContribFeature based on HAAR features, used by TrackerMIL and many others algorithms. View details

Collaboration diagram for cv::detail::tracking::TrackerContribFeatureHAAR:

Public Member Functions#

Public Member Functions inherited from cv::detail::tracking::TrackerContribFeature

Return

Name

Description

~TrackerContribFeature()

String

getClassName()

Get the name of the specific TrackerContribFeature.

void

selection(
    Mat & response,
    int npoints )

Identify most effective features.

Public Member Functions inherited from cv::detail::tracking::TrackerFeature

Return

Name

Description

~TrackerFeature()

void

compute(
    const std::vector< Mat > & images,
    Mat & response )

Compute the features in the images collection.

Static Public Member Functions#

Static Public Member Functions inherited from cv::detail::tracking::TrackerContribFeature

Return

Name

Description

static Ptr< TrackerContribFeature >

create(const String & trackerFeatureType)

Create TrackerContribFeature by tracker feature type.

Additional Inherited Members#

Protected Member Functions inherited from cv::detail::tracking::TrackerFeature
Protected Attributes inherited from cv::detail::tracking::TrackerContribFeature

Return

Name

Description

String

className

Detailed Description#

TrackerContribFeature based on HAAR features, used by TrackerMIL and many others algorithms.

Note

HAAR features implementation is copied from apps/traincascade and modified according to MIL

Constructor & Destructor Documentation#

TrackerContribFeatureHAAR()#

cv::detail::tracking::TrackerContribFeatureHAAR::TrackerContribFeatureHAAR(const TrackerContribFeatureHAAR::Params & parameters = TrackerContribFeatureHAAR::Params())

Constructor.

Parameters

~TrackerContribFeatureHAAR()#

cv::detail::tracking::TrackerContribFeatureHAAR::~TrackerContribFeatureHAAR()

Member Function Documentation#

extractSelected()#

bool cv::detail::tracking::TrackerContribFeatureHAAR::extractSelected(
const std::vector< int > selFeatures,
const std::vector< Mat > & images,
Mat & response )

Compute the features only for the selected indices in the images collection.

Parameters

  • selFeatures — indices of selected features

  • images — The images

  • response — Collection of response for the specific TrackerContribFeature

getFeatureAt()#

CvHaarEvaluator::FeatureHaar & cv::detail::tracking::TrackerContribFeatureHAAR::getFeatureAt(int id)

Get the feature in position id.

Parameters

  • id — The position

selection()#

void cv::detail::tracking::TrackerContribFeatureHAAR::selection(
Mat & response,
int npoints )

Identify most effective features.

Note

This method modifies the response parameter

Parameters

  • response — Collection of response for the specific TrackerContribFeature

  • npoints — Max number of features

swapFeature()#

bool cv::detail::tracking::TrackerContribFeatureHAAR::swapFeature(
int id,
CvHaarEvaluator::FeatureHaar & feature )

Swap the feature in position id with the feature input.

Parameters

  • id — The position

  • feature — The feature

swapFeature()#

bool cv::detail::tracking::TrackerContribFeatureHAAR::swapFeature(
int source,
int target )

Swap the feature in position source with the feature in position target.

Parameters

  • source — The source position

  • target — The target position

computeImpl()#

bool cv::detail::tracking::TrackerContribFeatureHAAR::computeImpl(
const std::vector< Mat > & images,
Mat & response )

Member Data Documentation#

featureEvaluator#

Ptr< CvHaarEvaluator > cv::detail::tracking::TrackerContribFeatureHAAR::featureEvaluator

params#

Params cv::detail::tracking::TrackerContribFeatureHAAR::params

Source file#

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