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

#include <gpu.hpp>

Public Types

enum  { DEFAULT_WIN_SIGMA = -1 }
 
enum  { DEFAULT_NLEVELS = 64 }
 
enum  { DESCR_FORMAT_ROW_BY_ROW, DESCR_FORMAT_COL_BY_COL }
 

Public Member Functions

 HOGDescriptor (Size win_size=Size(64, 128), Size block_size=Size(16, 16), Size block_stride=Size(8, 8), Size cell_size=Size(8, 8), int nbins=9, double win_sigma=DEFAULT_WIN_SIGMA, double threshold_L2hys=0.2, bool gamma_correction=true, int nlevels=DEFAULT_NLEVELS)
 
size_t getDescriptorSize () const
 
size_t getBlockHistogramSize () const
 
void setSVMDetector (const vector< float > &detector)
 
void detect (const GpuMat &img, vector< Point > &found_locations, double hit_threshold=0, Size win_stride=Size(), Size padding=Size())
 
void detectMultiScale (const GpuMat &img, vector< Rect > &found_locations, double hit_threshold=0, Size win_stride=Size(), Size padding=Size(), double scale0=1.05, int group_threshold=2)
 
void computeConfidence (const GpuMat &img, vector< Point > &hits, double hit_threshold, Size win_stride, Size padding, vector< Point > &locations, vector< double > &confidences)
 
void computeConfidenceMultiScale (const GpuMat &img, vector< Rect > &found_locations, double hit_threshold, Size win_stride, Size padding, vector< HOGConfidence > &conf_out, int group_threshold)
 
void getDescriptors (const GpuMat &img, Size win_stride, GpuMat &descriptors, int descr_format=DESCR_FORMAT_COL_BY_COL)
 

Static Public Member Functions

static vector< float > getDefaultPeopleDetector ()
 
static vector< float > getPeopleDetector48x96 ()
 
static vector< float > getPeopleDetector64x128 ()
 

Public Attributes

Size win_size
 
Size block_size
 
Size block_stride
 
Size cell_size
 
int nbins
 
double win_sigma
 
double threshold_L2hys
 
bool gamma_correction
 
int nlevels
 

Protected Member Functions

void computeBlockHistograms (const GpuMat &img)
 
void computeGradient (const GpuMat &img, GpuMat &grad, GpuMat &qangle)
 
double getWinSigma () const
 
bool checkDetectorSize () const
 

Static Protected Member Functions

static int numPartsWithin (int size, int part_size, int stride)
 
static Size numPartsWithin (Size size, Size part_size, Size stride)
 
static GpuMat getBuffer (const Size &sz, int type, GpuMat &buf)
 
static GpuMat getBuffer (int rows, int cols, int type, GpuMat &buf)
 

Protected Attributes

float free_coef
 
GpuMat detector
 
GpuMat labels
 
GpuMat labels_buf
 
Mat labels_host
 
GpuMat block_hists
 
GpuMat block_hists_buf
 
GpuMat grad
 
GpuMat qangle
 
GpuMat grad_buf
 
GpuMat qangle_buf
 
std::vector< GpuMatimage_scales
 

Member Enumeration Documentation

anonymous enum
Enumerator
DEFAULT_WIN_SIGMA 
anonymous enum
Enumerator
DEFAULT_NLEVELS 
anonymous enum
Enumerator
DESCR_FORMAT_ROW_BY_ROW 
DESCR_FORMAT_COL_BY_COL 

Constructor & Destructor Documentation

cv::gpu::HOGDescriptor::HOGDescriptor ( Size  win_size = Size(64, 128),
Size  block_size = Size(16, 16),
Size  block_stride = Size(8, 8),
Size  cell_size = Size(8, 8),
int  nbins = 9,
double  win_sigma = DEFAULT_WIN_SIGMA,
double  threshold_L2hys = 0.2,
bool  gamma_correction = true,
int  nlevels = DEFAULT_NLEVELS 
)

Member Function Documentation

bool cv::gpu::HOGDescriptor::checkDetectorSize ( ) const
protected
void cv::gpu::HOGDescriptor::computeBlockHistograms ( const GpuMat img)
protected
void cv::gpu::HOGDescriptor::computeConfidence ( const GpuMat img,
vector< Point > &  hits,
double  hit_threshold,
Size  win_stride,
Size  padding,
vector< Point > &  locations,
vector< double > &  confidences 
)
void cv::gpu::HOGDescriptor::computeConfidenceMultiScale ( const GpuMat img,
vector< Rect > &  found_locations,
double  hit_threshold,
Size  win_stride,
Size  padding,
vector< HOGConfidence > &  conf_out,
int  group_threshold 
)
void cv::gpu::HOGDescriptor::computeGradient ( const GpuMat img,
GpuMat grad,
GpuMat qangle 
)
protected
void cv::gpu::HOGDescriptor::detect ( const GpuMat img,
vector< Point > &  found_locations,
double  hit_threshold = 0,
Size  win_stride = Size(),
Size  padding = Size() 
)
void cv::gpu::HOGDescriptor::detectMultiScale ( const GpuMat img,
vector< Rect > &  found_locations,
double  hit_threshold = 0,
Size  win_stride = Size(),
Size  padding = Size(),
double  scale0 = 1.05,
int  group_threshold = 2 
)
size_t cv::gpu::HOGDescriptor::getBlockHistogramSize ( ) const
static GpuMat cv::gpu::HOGDescriptor::getBuffer ( const Size sz,
int  type,
GpuMat buf 
)
staticprotected
static GpuMat cv::gpu::HOGDescriptor::getBuffer ( int  rows,
int  cols,
int  type,
GpuMat buf 
)
staticprotected
static vector<float> cv::gpu::HOGDescriptor::getDefaultPeopleDetector ( )
static
void cv::gpu::HOGDescriptor::getDescriptors ( const GpuMat img,
Size  win_stride,
GpuMat descriptors,
int  descr_format = DESCR_FORMAT_COL_BY_COL 
)
size_t cv::gpu::HOGDescriptor::getDescriptorSize ( ) const
static vector<float> cv::gpu::HOGDescriptor::getPeopleDetector48x96 ( )
static
static vector<float> cv::gpu::HOGDescriptor::getPeopleDetector64x128 ( )
static
double cv::gpu::HOGDescriptor::getWinSigma ( ) const
protected
static int cv::gpu::HOGDescriptor::numPartsWithin ( int  size,
int  part_size,
int  stride 
)
staticprotected
static Size cv::gpu::HOGDescriptor::numPartsWithin ( Size  size,
Size  part_size,
Size  stride 
)
staticprotected
void cv::gpu::HOGDescriptor::setSVMDetector ( const vector< float > &  detector)

Member Data Documentation

GpuMat cv::gpu::HOGDescriptor::block_hists
protected
GpuMat cv::gpu::HOGDescriptor::block_hists_buf
protected
Size cv::gpu::HOGDescriptor::block_size
Size cv::gpu::HOGDescriptor::block_stride
Size cv::gpu::HOGDescriptor::cell_size
GpuMat cv::gpu::HOGDescriptor::detector
protected
float cv::gpu::HOGDescriptor::free_coef
protected
bool cv::gpu::HOGDescriptor::gamma_correction
GpuMat cv::gpu::HOGDescriptor::grad
protected
GpuMat cv::gpu::HOGDescriptor::grad_buf
protected
std::vector<GpuMat> cv::gpu::HOGDescriptor::image_scales
protected
GpuMat cv::gpu::HOGDescriptor::labels
protected
GpuMat cv::gpu::HOGDescriptor::labels_buf
protected
Mat cv::gpu::HOGDescriptor::labels_host
protected
int cv::gpu::HOGDescriptor::nbins
int cv::gpu::HOGDescriptor::nlevels
GpuMat cv::gpu::HOGDescriptor::qangle
protected
GpuMat cv::gpu::HOGDescriptor::qangle_buf
protected
double cv::gpu::HOGDescriptor::threshold_L2hys
double cv::gpu::HOGDescriptor::win_sigma
Size cv::gpu::HOGDescriptor::win_size

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