OpenCV  3.3.0
Open Source Computer Vision
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
 

Detailed Description

Examples:
peopledetect.cpp.

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,
bool  _signedGradient = false 
)
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 ( InputArray  img,
std::vector< float > &  descriptors,
Size  winStride = Size(),
Size  padding = Size(),
const std::vector< Point > &  locations = std::vector< Point >() 
) const
virtual

§ computeGradient()

virtual void cv::HOGDescriptor::computeGradient ( const Mat img,
Mat grad,
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,
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

§ detect() [2/2]

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

§ detectMultiScale() [1/2]

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

Examples:
peopledetect.cpp.

§ detectMultiScale() [2/2]

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

§ detectMultiScaleROI()

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

§ detectROI()

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

§ getDaimlerPeopleDetector()

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

§ getDefaultPeopleDetector()

static std::vector<float> cv::HOGDescriptor::getDefaultPeopleDetector ( )
static
Examples:
peopledetect.cpp.

§ getDescriptorSize()

size_t cv::HOGDescriptor::getDescriptorSize ( ) const

§ getWinSigma()

double cv::HOGDescriptor::getWinSigma ( ) const

§ groupRectangles()

void cv::HOGDescriptor::groupRectangles ( std::vector< cv::Rect > &  rectList,
std::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 ( String  modelfile)

read/parse Dalal's alt model file

§ save()

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

§ setSVMDetector()

virtual void cv::HOGDescriptor::setSVMDetector ( InputArray  _svmdetector)
virtual
Examples:
peopledetect.cpp.

§ write()

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

Member Data Documentation

§ blockSize

Size cv::HOGDescriptor::blockSize

§ blockStride

Size cv::HOGDescriptor::blockStride

§ cellSize

Size cv::HOGDescriptor::cellSize

§ derivAperture

int cv::HOGDescriptor::derivAperture

§ free_coef

float cv::HOGDescriptor::free_coef

§ gammaCorrection

bool cv::HOGDescriptor::gammaCorrection

§ histogramNormType

int cv::HOGDescriptor::histogramNormType

§ L2HysThreshold

double cv::HOGDescriptor::L2HysThreshold

§ nbins

int cv::HOGDescriptor::nbins

§ nlevels

int cv::HOGDescriptor::nlevels

§ oclSvmDetector

UMat cv::HOGDescriptor::oclSvmDetector

§ signedGradient

bool cv::HOGDescriptor::signedGradient

§ svmDetector

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

§ winSigma

double cv::HOGDescriptor::winSigma

§ winSize

Size cv::HOGDescriptor::winSize

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