OpenCV  3.0.0-rc1
Open Source Computer Vision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cv::BaseClassifier Class Reference

#include "onlineBoosting.hpp"

Public Member Functions

 BaseClassifier (int numWeakClassifier, int iterationInit)
 
 BaseClassifier (int numWeakClassifier, int iterationInit, WeakClassifierHaarFeature **weakCls)
 
virtual ~BaseClassifier ()
 
int computeReplaceWeakestClassifier (const std::vector< float > &errors)
 
int eval (const Mat &image)
 
float getError (int curWeakClassifier)
 
void getErrors (float *errors)
 
int getIdxOfNewWeakClassifier ()
 
WeakClassifierHaarFeature ** getReferenceWeakClassifier ()
 
int getSelectedClassifier () const
 
void replaceClassifierStatistic (int sourceIndex, int targetIndex)
 
void replaceWeakClassifier (int index)
 
int selectBestClassifier (std::vector< bool > &errorMask, float importance, std::vector< float > &errors)
 
void trainClassifier (const Mat &image, int target, float importance, std::vector< bool > &errorMask)
 

Protected Member Functions

void generateRandomClassifier ()
 

Protected Attributes

int m_idxOfNewWeakClassifier
 
int m_iterationInit
 
int m_numWeakClassifier
 
bool m_referenceWeakClassifier
 
int m_selectedClassifier
 
std::vector< float > m_wCorrect
 
std::vector< float > m_wWrong
 
WeakClassifierHaarFeature ** weakClassifier
 

Constructor & Destructor Documentation

cv::BaseClassifier::BaseClassifier ( int  numWeakClassifier,
int  iterationInit 
)
cv::BaseClassifier::BaseClassifier ( int  numWeakClassifier,
int  iterationInit,
WeakClassifierHaarFeature **  weakCls 
)
virtual cv::BaseClassifier::~BaseClassifier ( )
virtual

Member Function Documentation

int cv::BaseClassifier::computeReplaceWeakestClassifier ( const std::vector< float > &  errors)
int cv::BaseClassifier::eval ( const Mat image)
void cv::BaseClassifier::generateRandomClassifier ( )
protected
float cv::BaseClassifier::getError ( int  curWeakClassifier)
void cv::BaseClassifier::getErrors ( float *  errors)
int cv::BaseClassifier::getIdxOfNewWeakClassifier ( )
inline
WeakClassifierHaarFeature** cv::BaseClassifier::getReferenceWeakClassifier ( )
inline
int cv::BaseClassifier::getSelectedClassifier ( ) const
void cv::BaseClassifier::replaceClassifierStatistic ( int  sourceIndex,
int  targetIndex 
)
void cv::BaseClassifier::replaceWeakClassifier ( int  index)
int cv::BaseClassifier::selectBestClassifier ( std::vector< bool > &  errorMask,
float  importance,
std::vector< float > &  errors 
)
void cv::BaseClassifier::trainClassifier ( const Mat image,
int  target,
float  importance,
std::vector< bool > &  errorMask 
)

Member Data Documentation

int cv::BaseClassifier::m_idxOfNewWeakClassifier
protected
int cv::BaseClassifier::m_iterationInit
protected
int cv::BaseClassifier::m_numWeakClassifier
protected
bool cv::BaseClassifier::m_referenceWeakClassifier
protected
int cv::BaseClassifier::m_selectedClassifier
protected
std::vector<float> cv::BaseClassifier::m_wCorrect
protected
std::vector<float> cv::BaseClassifier::m_wWrong
protected
WeakClassifierHaarFeature** cv::BaseClassifier::weakClassifier
protected

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