OpenCV  2.4.13.3
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

anonymous enum
protected
Enumerator
BOOST 

§ anonymous enum

anonymous enum
protected
Enumerator
DO_CANNY_PRUNING 
SCALE_IMAGE 
FIND_BIGGEST_OBJECT 
DO_ROUGH_SEARCH 

Constructor & Destructor Documentation

§ CascadeClassifier() [1/2]

cv::CascadeClassifier::CascadeClassifier ( )

§ CascadeClassifier() [2/2]

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

§ ~CascadeClassifier()

virtual cv::CascadeClassifier::~CascadeClassifier ( )
virtual

Member Function Documentation

§ detectMultiScale() [1/2]

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

§ detectMultiScale() [2/2]

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

§ detectSingleScale()

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

§ empty()

virtual bool cv::CascadeClassifier::empty ( ) const
virtual

§ getFeatureType()

int cv::CascadeClassifier::getFeatureType ( ) const

§ getMaskGenerator()

Ptr<MaskGenerator> cv::CascadeClassifier::getMaskGenerator ( )

§ getOriginalWindowSize()

virtual Size cv::CascadeClassifier::getOriginalWindowSize ( ) const
virtual

§ isOldFormatCascade()

bool cv::CascadeClassifier::isOldFormatCascade ( ) const

§ load()

bool cv::CascadeClassifier::load ( const string &  filename)

§ read()

virtual bool cv::CascadeClassifier::read ( const FileNode node)
virtual

§ runAt()

virtual int cv::CascadeClassifier::runAt ( Ptr< FeatureEvaluator > &  feval,
Point  pt,
double &  weight 
)
protectedvirtual

§ setFaceDetectionMaskGenerator()

void cv::CascadeClassifier::setFaceDetectionMaskGenerator ( )

§ setImage() [1/2]

bool cv::CascadeClassifier::setImage ( const Mat )

§ setImage() [2/2]

bool cv::CascadeClassifier::setImage ( Ptr< FeatureEvaluator > &  feval,
const Mat image 
)
protected

§ setMaskGenerator()

void cv::CascadeClassifier::setMaskGenerator ( Ptr< MaskGenerator maskGenerator)

Friends And Related Function Documentation

§ CascadeClassifierInvoker

friend class CascadeClassifierInvoker
friend

§ predictCategorical

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

§ predictCategoricalStump

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

§ predictOrdered

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

§ predictOrderedStump

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

Member Data Documentation

§ data

Data cv::CascadeClassifier::data
protected

§ featureEvaluator

Ptr<FeatureEvaluator> cv::CascadeClassifier::featureEvaluator
protected

§ maskGenerator

Ptr<MaskGenerator> cv::CascadeClassifier::maskGenerator
protected

§ oldCascade

Ptr<CvHaarClassifierCascade> cv::CascadeClassifier::oldCascade
protected

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