OpenCV  4.1.0
Open Source Computer Vision
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cv::CvHaarEvaluator Class Reference

#include <opencv2/tracking/feature.hpp>

Inheritance diagram for cv::CvHaarEvaluator:
cv::CvFeatureEvaluator

Classes

class  FeatureHaar
 

Public Member Functions

virtual void generateFeatures () CV_OVERRIDE
 
virtual void generateFeatures (int numFeatures)
 Overload the original generateFeatures in order to limit the number of the features.
 
const std::vector
< CvHaarEvaluator::FeatureHaar > & 
getFeatures () const
 
CvHaarEvaluator::FeatureHaargetFeatures (int idx)
 
virtual void init (const CvFeatureParams *_featureParams, int _maxSampleCount, Size _winSize) CV_OVERRIDE
 
virtual float operator() (int featureIdx, int sampleIdx) CV_OVERRIDE
 
virtual void setImage (const Mat &img, uchar clsLabel=0, int idx=1) CV_OVERRIDE
 
void setWinSize (Size patchSize)
 
Size setWinSize () const
 
void writeFeature (FileStorage &fs) const
 
virtual void writeFeatures (FileStorage &fs, const Mat &featureMap) const CV_OVERRIDE
 
- Public Member Functions inherited from cv::CvFeatureEvaluator
virtual ~CvFeatureEvaluator ()
 
const MatgetCls () const
 
float getCls (int si) const
 
int getFeatureSize () const
 
int getMaxCatCount () const
 
int getNumFeatures () const
 

Protected Member Functions

void compute_integral (const cv::Mat &img, std::vector< cv::Mat_< float > > &ii_imgs)
 

Protected Attributes

Mat _ii_img
 
std::vector< FeatureHaarfeatures
 
bool isIntegral
 
Mat sum
 
- Protected Attributes inherited from cv::CvFeatureEvaluator
Mat cls
 
CvFeatureParamsfeatureParams
 
int nneg
 
int npos
 
int numFeatures
 
Size winSize
 

Additional Inherited Members

- Static Public Member Functions inherited from cv::CvFeatureEvaluator
static Ptr< CvFeatureEvaluatorcreate (CvFeatureParams::FeatureType type)
 

Member Function Documentation

void cv::CvHaarEvaluator::compute_integral ( const cv::Mat img,
std::vector< cv::Mat_< float > > &  ii_imgs 
)
inlineprotected
virtual void cv::CvHaarEvaluator::generateFeatures ( )
virtual
virtual void cv::CvHaarEvaluator::generateFeatures ( int  numFeatures)
virtual

Overload the original generateFeatures in order to limit the number of the features.

TODO new method

Parameters
numFeaturesNumber of the features
const std::vector<CvHaarEvaluator::FeatureHaar>& cv::CvHaarEvaluator::getFeatures ( ) const
CvHaarEvaluator::FeatureHaar& cv::CvHaarEvaluator::getFeatures ( int  idx)
inline
virtual void cv::CvHaarEvaluator::init ( const CvFeatureParams _featureParams,
int  _maxSampleCount,
Size  _winSize 
)
virtual

Reimplemented from cv::CvFeatureEvaluator.

virtual float cv::CvHaarEvaluator::operator() ( int  featureIdx,
int  sampleIdx 
)
virtual
virtual void cv::CvHaarEvaluator::setImage ( const Mat img,
uchar  clsLabel = 0,
int  idx = 1 
)
virtual

Reimplemented from cv::CvFeatureEvaluator.

void cv::CvHaarEvaluator::setWinSize ( Size  patchSize)
Size cv::CvHaarEvaluator::setWinSize ( ) const
void cv::CvHaarEvaluator::writeFeature ( FileStorage fs) const
virtual void cv::CvHaarEvaluator::writeFeatures ( FileStorage fs,
const Mat featureMap 
) const
virtual

Member Data Documentation

Mat cv::CvHaarEvaluator::_ii_img
protected
std::vector<FeatureHaar> cv::CvHaarEvaluator::features
protected
bool cv::CvHaarEvaluator::isIntegral
protected
Mat cv::CvHaarEvaluator::sum
protected

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