OpenCV  3.0.0
Open Source Computer Vision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
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, bool _signedGradient=false)
 
 HOGDescriptor (const String &filename)
 
 HOGDescriptor (const HOGDescriptor &d)
 
virtual ~HOGDescriptor ()
 
bool checkDetectorSize () const
 
virtual void compute (InputArray img, std::vector< float > &descriptors, Size winStride=Size(), Size padding=Size(), const std::vector< Point > &locations=std::vector< Point >()) const
 
virtual void computeGradient (const Mat &img, Mat &grad, Mat &angleOfs, Size paddingTL=Size(), Size paddingBR=Size()) const
 
virtual void copyTo (HOGDescriptor &c) const
 
virtual void detect (const Mat &img, std::vector< Point > &foundLocations, std::vector< double > &weights, double hitThreshold=0, Size winStride=Size(), Size padding=Size(), const std::vector< Point > &searchLocations=std::vector< Point >()) const
 with found weights output More...
 
virtual void detect (const Mat &img, std::vector< Point > &foundLocations, double hitThreshold=0, Size winStride=Size(), Size padding=Size(), const std::vector< Point > &searchLocations=std::vector< Point >()) const
 without found weights output More...
 
virtual void detectMultiScale (InputArray img, std::vector< Rect > &foundLocations, std::vector< double > &foundWeights, double hitThreshold=0, Size winStride=Size(), Size padding=Size(), double scale=1.05, double finalThreshold=2.0, bool useMeanshiftGrouping=false) const
 with result weights output More...
 
virtual void detectMultiScale (InputArray img, std::vector< Rect > &foundLocations, double hitThreshold=0, Size winStride=Size(), Size padding=Size(), double scale=1.05, double finalThreshold=2.0, bool useMeanshiftGrouping=false) const
 without found weights output More...
 
virtual void detectMultiScaleROI (const cv::Mat &img, std::vector< cv::Rect > &foundLocations, std::vector< DetectionROI > &locations, double hitThreshold=0, int groupThreshold=0) const
 evaluate specified ROI and return confidence value for each location in multiple scales More...
 
virtual void detectROI (const cv::Mat &img, const std::vector< cv::Point > &locations, std::vector< cv::Point > &foundLocations, std::vector< double > &confidences, double hitThreshold=0, cv::Size winStride=Size(), cv::Size padding=Size()) const
 evaluate specified ROI and return confidence value for each location More...
 
size_t getDescriptorSize () const
 
double getWinSigma () const
 
void groupRectangles (std::vector< cv::Rect > &rectList, std::vector< double > &weights, int groupThreshold, double eps) const
 
virtual bool load (const String &filename, const String &objname=String())
 
virtual bool read (FileNode &fn)
 
void readALTModel (String modelfile)
 read/parse Dalal's alt model file More...
 
virtual void save (const String &filename, const String &objname=String()) const
 
virtual void setSVMDetector (InputArray _svmdetector)
 
virtual void write (FileStorage &fs, const String &objname) const
 

Static Public Member Functions

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

Public Attributes

Size blockSize
 
Size blockStride
 
Size cellSize
 
int derivAperture
 
float free_coef
 
bool gammaCorrection
 
int histogramNormType
 
double L2HysThreshold
 
int nbins
 
int nlevels
 
UMat oclSvmDetector
 
bool signedGradient
 
std::vector< float > svmDetector
 
double winSigma
 
Size winSize
 

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,
bool  _signedGradient = false 
)
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 ( InputArray  img,
std::vector< float > &  descriptors,
Size  winStride = Size(),
Size  padding = Size(),
const std::vector< Point > &  locations = std::vector< Point >() 
) const
virtual
virtual void cv::HOGDescriptor::computeGradient ( const Mat img,
Mat grad,
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,
std::vector< Point > &  foundLocations,
std::vector< double > &  weights,
double  hitThreshold = 0,
Size  winStride = Size(),
Size  padding = Size(),
const std::vector< Point > &  searchLocations = std::vector< Point >() 
) const
virtual

with found weights output

virtual void cv::HOGDescriptor::detect ( const Mat img,
std::vector< Point > &  foundLocations,
double  hitThreshold = 0,
Size  winStride = Size(),
Size  padding = Size(),
const std::vector< Point > &  searchLocations = std::vector< Point >() 
) const
virtual

without found weights output

virtual void cv::HOGDescriptor::detectMultiScale ( InputArray  img,
std::vector< Rect > &  foundLocations,
std::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

with result weights output

virtual void cv::HOGDescriptor::detectMultiScale ( InputArray  img,
std::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

without found weights output

virtual void cv::HOGDescriptor::detectMultiScaleROI ( const cv::Mat img,
std::vector< cv::Rect > &  foundLocations,
std::vector< DetectionROI > &  locations,
double  hitThreshold = 0,
int  groupThreshold = 0 
) const
virtual

evaluate specified ROI and return confidence value for each location in multiple scales

virtual void cv::HOGDescriptor::detectROI ( const cv::Mat img,
const std::vector< cv::Point > &  locations,
std::vector< cv::Point > &  foundLocations,
std::vector< double > &  confidences,
double  hitThreshold = 0,
cv::Size  winStride = Size(),
cv::Size  padding = Size() 
) const
virtual

evaluate specified ROI and return confidence value for each location

static std::vector<float> cv::HOGDescriptor::getDaimlerPeopleDetector ( )
static
static std::vector<float> cv::HOGDescriptor::getDefaultPeopleDetector ( )
static
size_t cv::HOGDescriptor::getDescriptorSize ( ) const
double cv::HOGDescriptor::getWinSigma ( ) const
void cv::HOGDescriptor::groupRectangles ( std::vector< cv::Rect > &  rectList,
std::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 ( String  modelfile)

read/parse Dalal's alt model file

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

Size cv::HOGDescriptor::blockSize
Size cv::HOGDescriptor::blockStride
Size cv::HOGDescriptor::cellSize
int cv::HOGDescriptor::derivAperture
float cv::HOGDescriptor::free_coef
bool cv::HOGDescriptor::gammaCorrection
int cv::HOGDescriptor::histogramNormType
double cv::HOGDescriptor::L2HysThreshold
int cv::HOGDescriptor::nbins
int cv::HOGDescriptor::nlevels
UMat cv::HOGDescriptor::oclSvmDetector
bool cv::HOGDescriptor::signedGradient
std::vector<float> cv::HOGDescriptor::svmDetector
double cv::HOGDescriptor::winSigma
Size cv::HOGDescriptor::winSize

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