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

anonymous enum
Enumerator
L2Hys 

§ anonymous enum

anonymous enum
Enumerator
DEFAULT_NLEVELS 

Constructor & Destructor Documentation

§ HOGDescriptor() [1/4]

cv::HOGDescriptor::HOGDescriptor ( )
inline

§ HOGDescriptor() [2/4]

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

§ HOGDescriptor() [3/4]

cv::HOGDescriptor::HOGDescriptor ( const String filename)
inline

§ HOGDescriptor() [4/4]

cv::HOGDescriptor::HOGDescriptor ( const HOGDescriptor d)
inline

§ ~HOGDescriptor()

virtual cv::HOGDescriptor::~HOGDescriptor ( )
inlinevirtual

Member Function Documentation

§ checkDetectorSize()

bool cv::HOGDescriptor::checkDetectorSize ( ) const

§ compute()

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

§ computeGradient()

virtual void cv::HOGDescriptor::computeGradient ( const Mat img,
CV_OUT Mat grad,
CV_OUT Mat angleOfs,
Size  paddingTL = Size(),
Size  paddingBR = Size() 
) const
virtual

§ copyTo()

virtual void cv::HOGDescriptor::copyTo ( HOGDescriptor c) const
virtual

§ detect() [1/2]

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

§ detect() [2/2]

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

§ detectMultiScale() [1/2]

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

§ detectMultiScale() [2/2]

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

§ detectMultiScaleROI()

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

§ detectROI()

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

§ getDaimlerPeopleDetector()

static vector<float> cv::HOGDescriptor::getDaimlerPeopleDetector ( )
static

§ getDefaultPeopleDetector()

static vector<float> cv::HOGDescriptor::getDefaultPeopleDetector ( )
static

§ getDescriptorSize()

size_t cv::HOGDescriptor::getDescriptorSize ( ) const

§ getWinSigma()

double cv::HOGDescriptor::getWinSigma ( ) const

§ groupRectangles()

void cv::HOGDescriptor::groupRectangles ( vector< cv::Rect > &  rectList,
vector< double > &  weights,
int  groupThreshold,
double  eps 
) const

§ load()

virtual bool cv::HOGDescriptor::load ( const String filename,
const String objname = String() 
)
virtual

§ read()

virtual bool cv::HOGDescriptor::read ( FileNode fn)
virtual

§ readALTModel()

void cv::HOGDescriptor::readALTModel ( std::string  modelfile)

§ save()

virtual void cv::HOGDescriptor::save ( const String filename,
const String objname = String() 
) const
virtual

§ setSVMDetector()

virtual void cv::HOGDescriptor::setSVMDetector ( InputArray  _svmdetector)
virtual

§ write()

virtual void cv::HOGDescriptor::write ( FileStorage fs,
const String objname 
) const
virtual

Member Data Documentation

§ blockSize

CV_PROP Size cv::HOGDescriptor::blockSize

§ blockStride

CV_PROP Size cv::HOGDescriptor::blockStride

§ cellSize

CV_PROP Size cv::HOGDescriptor::cellSize

§ derivAperture

CV_PROP int cv::HOGDescriptor::derivAperture

§ gammaCorrection

CV_PROP bool cv::HOGDescriptor::gammaCorrection

§ histogramNormType

CV_PROP int cv::HOGDescriptor::histogramNormType

§ L2HysThreshold

CV_PROP double cv::HOGDescriptor::L2HysThreshold

§ nbins

CV_PROP int cv::HOGDescriptor::nbins

§ nlevels

CV_PROP int cv::HOGDescriptor::nlevels

§ svmDetector

CV_PROP vector<float> cv::HOGDescriptor::svmDetector

§ winSigma

CV_PROP double cv::HOGDescriptor::winSigma

§ winSize

CV_PROP Size cv::HOGDescriptor::winSize

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