OpenCV  2.4.13
Open Source Computer Vision
cv::HOGDescriptor Struct Reference

#include <objdetect.hpp>

Public Types

enum  { L2Hys =0 }
 
enum  { DEFAULT_NLEVELS =64 }
 

Public Member Functions

 HOGDescriptor ()
 
 HOGDescriptor (Size _winSize, Size _blockSize, Size _blockStride, Size _cellSize, int _nbins, int _derivAperture=1, double _winSigma=-1, int _histogramNormType=HOGDescriptor::L2Hys, double _L2HysThreshold=0.2, bool _gammaCorrection=false, int _nlevels=HOGDescriptor::DEFAULT_NLEVELS)
 
 HOGDescriptor (const String &filename)
 
 HOGDescriptor (const HOGDescriptor &d)
 
virtual ~HOGDescriptor ()
 
size_t getDescriptorSize () const
 
bool checkDetectorSize () const
 
double getWinSigma () const
 
virtual void setSVMDetector (InputArray _svmdetector)
 
virtual bool read (FileNode &fn)
 
virtual void write (FileStorage &fs, const String &objname) const
 
virtual bool load (const String &filename, const String &objname=String())
 
virtual void save (const String &filename, const String &objname=String()) const
 
virtual void copyTo (HOGDescriptor &c) const
 
virtual void compute (const Mat &img, CV_OUT vector< float > &descriptors, Size winStride=Size(), Size padding=Size(), const vector< Point > &locations=vector< Point >()) const
 
virtual void detect (const Mat &img, CV_OUT vector< Point > &foundLocations, CV_OUT vector< double > &weights, double hitThreshold=0, Size winStride=Size(), Size padding=Size(), const vector< Point > &searchLocations=vector< Point >()) const
 
virtual void detect (const Mat &img, CV_OUT vector< Point > &foundLocations, double hitThreshold=0, Size winStride=Size(), Size padding=Size(), const vector< Point > &searchLocations=vector< Point >()) const
 
virtual void detectMultiScale (const Mat &img, CV_OUT vector< Rect > &foundLocations, CV_OUT vector< double > &foundWeights, double hitThreshold=0, Size winStride=Size(), Size padding=Size(), double scale=1.05, double finalThreshold=2.0, bool useMeanshiftGrouping=false) const
 
virtual void detectMultiScale (const Mat &img, CV_OUT vector< Rect > &foundLocations, double hitThreshold=0, Size winStride=Size(), Size padding=Size(), double scale=1.05, double finalThreshold=2.0, bool useMeanshiftGrouping=false) const
 
virtual void computeGradient (const Mat &img, CV_OUT Mat &grad, CV_OUT Mat &angleOfs, Size paddingTL=Size(), Size paddingBR=Size()) const
 
void detectROI (const cv::Mat &img, const vector< cv::Point > &locations, CV_OUT std::vector< cv::Point > &foundLocations, CV_OUT std::vector< double > &confidences, double hitThreshold=0, cv::Size winStride=Size(), cv::Size padding=Size()) const
 
void detectMultiScaleROI (const cv::Mat &img, CV_OUT std::vector< cv::Rect > &foundLocations, std::vector< DetectionROI > &locations, double hitThreshold=0, int groupThreshold=0) const
 
void readALTModel (std::string modelfile)
 
void groupRectangles (vector< cv::Rect > &rectList, vector< double > &weights, int groupThreshold, double eps) const
 

Static Public Member Functions

static vector< float > getDefaultPeopleDetector ()
 
static vector< float > getDaimlerPeopleDetector ()
 

Public Attributes

CV_PROP Size winSize
 
CV_PROP Size blockSize
 
CV_PROP Size blockStride
 
CV_PROP Size cellSize
 
CV_PROP int nbins
 
CV_PROP int derivAperture
 
CV_PROP double winSigma
 
CV_PROP int histogramNormType
 
CV_PROP double L2HysThreshold
 
CV_PROP bool gammaCorrection
 
CV_PROP vector< float > svmDetector
 
CV_PROP int nlevels
 

Member Enumeration Documentation

anonymous enum
Enumerator
L2Hys 
anonymous enum
Enumerator
DEFAULT_NLEVELS 

Constructor & Destructor Documentation

cv::HOGDescriptor::HOGDescriptor ( )
inline
cv::HOGDescriptor::HOGDescriptor ( Size  _winSize,
Size  _blockSize,
Size  _blockStride,
Size  _cellSize,
int  _nbins,
int  _derivAperture = 1,
double  _winSigma = -1,
int  _histogramNormType = HOGDescriptor::L2Hys,
double  _L2HysThreshold = 0.2,
bool  _gammaCorrection = false,
int  _nlevels = HOGDescriptor::DEFAULT_NLEVELS 
)
inline
cv::HOGDescriptor::HOGDescriptor ( const String filename)
inline
cv::HOGDescriptor::HOGDescriptor ( const HOGDescriptor d)
inline
virtual cv::HOGDescriptor::~HOGDescriptor ( )
inlinevirtual

Member Function Documentation

bool cv::HOGDescriptor::checkDetectorSize ( ) const
virtual void cv::HOGDescriptor::compute ( const Mat img,
CV_OUT vector< float > &  descriptors,
Size  winStride = Size(),
Size  padding = Size(),
const vector< Point > &  locations = vector< Point >() 
) const
virtual
virtual void cv::HOGDescriptor::computeGradient ( const Mat img,
CV_OUT Mat grad,
CV_OUT Mat angleOfs,
Size  paddingTL = Size(),
Size  paddingBR = Size() 
) const
virtual
virtual void cv::HOGDescriptor::copyTo ( HOGDescriptor c) const
virtual
virtual void cv::HOGDescriptor::detect ( const Mat img,
CV_OUT vector< Point > &  foundLocations,
CV_OUT vector< double > &  weights,
double  hitThreshold = 0,
Size  winStride = Size(),
Size  padding = Size(),
const vector< Point > &  searchLocations = vector< Point >() 
) const
virtual
virtual void cv::HOGDescriptor::detect ( const Mat img,
CV_OUT vector< Point > &  foundLocations,
double  hitThreshold = 0,
Size  winStride = Size(),
Size  padding = Size(),
const vector< Point > &  searchLocations = vector< Point >() 
) const
virtual
virtual void cv::HOGDescriptor::detectMultiScale ( const Mat img,
CV_OUT vector< Rect > &  foundLocations,
CV_OUT vector< double > &  foundWeights,
double  hitThreshold = 0,
Size  winStride = Size(),
Size  padding = Size(),
double  scale = 1.05,
double  finalThreshold = 2.0,
bool  useMeanshiftGrouping = false 
) const
virtual
virtual void cv::HOGDescriptor::detectMultiScale ( const Mat img,
CV_OUT vector< Rect > &  foundLocations,
double  hitThreshold = 0,
Size  winStride = Size(),
Size  padding = Size(),
double  scale = 1.05,
double  finalThreshold = 2.0,
bool  useMeanshiftGrouping = false 
) const
virtual
void cv::HOGDescriptor::detectMultiScaleROI ( const cv::Mat img,
CV_OUT std::vector< cv::Rect > &  foundLocations,
std::vector< DetectionROI > &  locations,
double  hitThreshold = 0,
int  groupThreshold = 0 
) const
void cv::HOGDescriptor::detectROI ( const cv::Mat img,
const vector< cv::Point > &  locations,
CV_OUT std::vector< cv::Point > &  foundLocations,
CV_OUT std::vector< double > &  confidences,
double  hitThreshold = 0,
cv::Size  winStride = Size(),
cv::Size  padding = Size() 
) const
static vector<float> cv::HOGDescriptor::getDaimlerPeopleDetector ( )
static
static vector<float> cv::HOGDescriptor::getDefaultPeopleDetector ( )
static
size_t cv::HOGDescriptor::getDescriptorSize ( ) const
double cv::HOGDescriptor::getWinSigma ( ) const
void cv::HOGDescriptor::groupRectangles ( vector< cv::Rect > &  rectList,
vector< double > &  weights,
int  groupThreshold,
double  eps 
) const
virtual bool cv::HOGDescriptor::load ( const String filename,
const String objname = String() 
)
virtual
virtual bool cv::HOGDescriptor::read ( FileNode fn)
virtual
void cv::HOGDescriptor::readALTModel ( std::string  modelfile)
virtual void cv::HOGDescriptor::save ( const String filename,
const String objname = String() 
) const
virtual
virtual void cv::HOGDescriptor::setSVMDetector ( InputArray  _svmdetector)
virtual
virtual void cv::HOGDescriptor::write ( FileStorage fs,
const String objname 
) const
virtual

Member Data Documentation

CV_PROP Size cv::HOGDescriptor::blockSize
CV_PROP Size cv::HOGDescriptor::blockStride
CV_PROP Size cv::HOGDescriptor::cellSize
CV_PROP int cv::HOGDescriptor::derivAperture
CV_PROP bool cv::HOGDescriptor::gammaCorrection
CV_PROP int cv::HOGDescriptor::histogramNormType
CV_PROP double cv::HOGDescriptor::L2HysThreshold
CV_PROP int cv::HOGDescriptor::nbins
CV_PROP int cv::HOGDescriptor::nlevels
CV_PROP vector<float> cv::HOGDescriptor::svmDetector
CV_PROP double cv::HOGDescriptor::winSigma
CV_PROP Size cv::HOGDescriptor::winSize

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