OpenCV  2.4.13
Open Source Computer Vision
cv::CascadeClassifier Class Reference

#include <objdetect.hpp>

Inheritance diagram for cv::CascadeClassifier:
cv::ocl::OclCascadeClassifier cv::ocl::OclCascadeClassifierBuf

Classes

class  Data
 
class  MaskGenerator
 

Public Member Functions

 CascadeClassifier ()
 
 CascadeClassifier (const string &filename)
 
virtual ~CascadeClassifier ()
 
virtual bool empty () const
 
bool load (const string &filename)
 
virtual bool read (const FileNode &node)
 
virtual void detectMultiScale (const Mat &image, CV_OUT vector< Rect > &objects, double scaleFactor=1.1, int minNeighbors=3, int flags=0, Size minSize=Size(), Size maxSize=Size())
 
virtual void detectMultiScale (const Mat &image, CV_OUT vector< Rect > &objects, vector< int > &rejectLevels, vector< double > &levelWeights, double scaleFactor=1.1, int minNeighbors=3, int flags=0, Size minSize=Size(), Size maxSize=Size(), bool outputRejectLevels=false)
 
bool isOldFormatCascade () const
 
virtual Size getOriginalWindowSize () const
 
int getFeatureType () const
 
bool setImage (const Mat &)
 
void setMaskGenerator (Ptr< MaskGenerator > maskGenerator)
 
Ptr< MaskGeneratorgetMaskGenerator ()
 
void setFaceDetectionMaskGenerator ()
 

Protected Types

enum  { BOOST = 0 }
 
enum  { DO_CANNY_PRUNING = 1, SCALE_IMAGE = 2, FIND_BIGGEST_OBJECT = 4, DO_ROUGH_SEARCH = 8 }
 

Protected Member Functions

virtual bool detectSingleScale (const Mat &image, int stripCount, Size processingRectSize, int stripSize, int yStep, double factor, vector< Rect > &candidates, vector< int > &rejectLevels, vector< double > &levelWeights, bool outputRejectLevels=false)
 
bool setImage (Ptr< FeatureEvaluator > &feval, const Mat &image)
 
virtual int runAt (Ptr< FeatureEvaluator > &feval, Point pt, double &weight)
 

Protected Attributes

Data data
 
Ptr< FeatureEvaluatorfeatureEvaluator
 
Ptr< CvHaarClassifierCascadeoldCascade
 
Ptr< MaskGeneratormaskGenerator
 

Friends

class CascadeClassifierInvoker
 
template<class FEval >
int predictOrdered (CascadeClassifier &cascade, Ptr< FeatureEvaluator > &featureEvaluator, double &weight)
 
template<class FEval >
int predictCategorical (CascadeClassifier &cascade, Ptr< FeatureEvaluator > &featureEvaluator, double &weight)
 
template<class FEval >
int predictOrderedStump (CascadeClassifier &cascade, Ptr< FeatureEvaluator > &featureEvaluator, double &weight)
 
template<class FEval >
int predictCategoricalStump (CascadeClassifier &cascade, Ptr< FeatureEvaluator > &featureEvaluator, double &weight)
 

Member Enumeration Documentation

anonymous enum
protected
Enumerator
BOOST 
anonymous enum
protected
Enumerator
DO_CANNY_PRUNING 
SCALE_IMAGE 
FIND_BIGGEST_OBJECT 
DO_ROUGH_SEARCH 

Constructor & Destructor Documentation

cv::CascadeClassifier::CascadeClassifier ( )
cv::CascadeClassifier::CascadeClassifier ( const string &  filename)
virtual cv::CascadeClassifier::~CascadeClassifier ( )
virtual

Member Function Documentation

virtual void cv::CascadeClassifier::detectMultiScale ( const Mat image,
CV_OUT vector< Rect > &  objects,
double  scaleFactor = 1.1,
int  minNeighbors = 3,
int  flags = 0,
Size  minSize = Size(),
Size  maxSize = Size() 
)
virtual
virtual void cv::CascadeClassifier::detectMultiScale ( const Mat image,
CV_OUT vector< Rect > &  objects,
vector< int > &  rejectLevels,
vector< double > &  levelWeights,
double  scaleFactor = 1.1,
int  minNeighbors = 3,
int  flags = 0,
Size  minSize = Size(),
Size  maxSize = Size(),
bool  outputRejectLevels = false 
)
virtual
virtual bool cv::CascadeClassifier::detectSingleScale ( const Mat image,
int  stripCount,
Size  processingRectSize,
int  stripSize,
int  yStep,
double  factor,
vector< Rect > &  candidates,
vector< int > &  rejectLevels,
vector< double > &  levelWeights,
bool  outputRejectLevels = false 
)
protectedvirtual
virtual bool cv::CascadeClassifier::empty ( ) const
virtual
int cv::CascadeClassifier::getFeatureType ( ) const
Ptr<MaskGenerator> cv::CascadeClassifier::getMaskGenerator ( )
virtual Size cv::CascadeClassifier::getOriginalWindowSize ( ) const
virtual
bool cv::CascadeClassifier::isOldFormatCascade ( ) const
bool cv::CascadeClassifier::load ( const string &  filename)
virtual bool cv::CascadeClassifier::read ( const FileNode node)
virtual
virtual int cv::CascadeClassifier::runAt ( Ptr< FeatureEvaluator > &  feval,
Point  pt,
double &  weight 
)
protectedvirtual
void cv::CascadeClassifier::setFaceDetectionMaskGenerator ( )
bool cv::CascadeClassifier::setImage ( const Mat )
bool cv::CascadeClassifier::setImage ( Ptr< FeatureEvaluator > &  feval,
const Mat image 
)
protected
void cv::CascadeClassifier::setMaskGenerator ( Ptr< MaskGenerator maskGenerator)

Friends And Related Function Documentation

friend class CascadeClassifierInvoker
friend
template<class FEval >
int predictCategorical ( CascadeClassifier cascade,
Ptr< FeatureEvaluator > &  featureEvaluator,
double &  weight 
)
friend
template<class FEval >
int predictCategoricalStump ( CascadeClassifier cascade,
Ptr< FeatureEvaluator > &  featureEvaluator,
double &  weight 
)
friend
template<class FEval >
int predictOrdered ( CascadeClassifier cascade,
Ptr< FeatureEvaluator > &  featureEvaluator,
double &  weight 
)
friend
template<class FEval >
int predictOrderedStump ( CascadeClassifier cascade,
Ptr< FeatureEvaluator > &  featureEvaluator,
double &  weight 
)
friend

Member Data Documentation

Data cv::CascadeClassifier::data
protected
Ptr<FeatureEvaluator> cv::CascadeClassifier::featureEvaluator
protected
Ptr<MaskGenerator> cv::CascadeClassifier::maskGenerator
protected
Ptr<CvHaarClassifierCascade> cv::CascadeClassifier::oldCascade
protected

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