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

#include <ocl.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 oclMat &img, vector< Point > &found_locations, double hit_threshold=0, Size win_stride=Size(), Size padding=Size())
 
void detectMultiScale (const oclMat &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 getDescriptors (const oclMat &img, Size win_stride, oclMat &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 init_buffer (const oclMat &img, Size win_stride)
 
void computeBlockHistograms (const oclMat &img)
 
void computeGradient (const oclMat &img, oclMat &grad, oclMat &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)
 

Protected Attributes

float free_coef
 
oclMat detector
 
oclMat labels
 
Mat labels_host
 
oclMat block_hists
 
oclMat grad
 
oclMat qangle
 
oclMat image_scale
 
Size effect_size
 

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::ocl::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::ocl::HOGDescriptor::checkDetectorSize ( ) const
protected
void cv::ocl::HOGDescriptor::computeBlockHistograms ( const oclMat img)
protected
void cv::ocl::HOGDescriptor::computeGradient ( const oclMat img,
oclMat grad,
oclMat qangle 
)
protected
void cv::ocl::HOGDescriptor::detect ( const oclMat img,
vector< Point > &  found_locations,
double  hit_threshold = 0,
Size  win_stride = Size(),
Size  padding = Size() 
)
void cv::ocl::HOGDescriptor::detectMultiScale ( const oclMat 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::ocl::HOGDescriptor::getBlockHistogramSize ( ) const
static vector<float> cv::ocl::HOGDescriptor::getDefaultPeopleDetector ( )
static
void cv::ocl::HOGDescriptor::getDescriptors ( const oclMat img,
Size  win_stride,
oclMat descriptors,
int  descr_format = DESCR_FORMAT_COL_BY_COL 
)
size_t cv::ocl::HOGDescriptor::getDescriptorSize ( ) const
static vector<float> cv::ocl::HOGDescriptor::getPeopleDetector48x96 ( )
static
static vector<float> cv::ocl::HOGDescriptor::getPeopleDetector64x128 ( )
static
double cv::ocl::HOGDescriptor::getWinSigma ( ) const
protected
void cv::ocl::HOGDescriptor::init_buffer ( const oclMat img,
Size  win_stride 
)
protected
static int cv::ocl::HOGDescriptor::numPartsWithin ( int  size,
int  part_size,
int  stride 
)
staticprotected
static Size cv::ocl::HOGDescriptor::numPartsWithin ( Size  size,
Size  part_size,
Size  stride 
)
staticprotected
void cv::ocl::HOGDescriptor::setSVMDetector ( const vector< float > &  detector)

Member Data Documentation

oclMat cv::ocl::HOGDescriptor::block_hists
protected
Size cv::ocl::HOGDescriptor::block_size
Size cv::ocl::HOGDescriptor::block_stride
Size cv::ocl::HOGDescriptor::cell_size
oclMat cv::ocl::HOGDescriptor::detector
protected
Size cv::ocl::HOGDescriptor::effect_size
protected
float cv::ocl::HOGDescriptor::free_coef
protected
bool cv::ocl::HOGDescriptor::gamma_correction
oclMat cv::ocl::HOGDescriptor::grad
protected
oclMat cv::ocl::HOGDescriptor::image_scale
protected
oclMat cv::ocl::HOGDescriptor::labels
protected
Mat cv::ocl::HOGDescriptor::labels_host
protected
int cv::ocl::HOGDescriptor::nbins
int cv::ocl::HOGDescriptor::nlevels
oclMat cv::ocl::HOGDescriptor::qangle
protected
double cv::ocl::HOGDescriptor::threshold_L2hys
double cv::ocl::HOGDescriptor::win_sigma
Size cv::ocl::HOGDescriptor::win_size

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