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

anonymous enum
Enumerator
DEFAULT_WIN_SIGMA 

§ anonymous enum

anonymous enum
Enumerator
DEFAULT_NLEVELS 

§ anonymous enum

anonymous enum
Enumerator
DESCR_FORMAT_ROW_BY_ROW 
DESCR_FORMAT_COL_BY_COL 

Constructor & Destructor Documentation

§ HOGDescriptor()

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

§ checkDetectorSize()

bool cv::ocl::HOGDescriptor::checkDetectorSize ( ) const
protected

§ computeBlockHistograms()

void cv::ocl::HOGDescriptor::computeBlockHistograms ( const oclMat img)
protected

§ computeGradient()

void cv::ocl::HOGDescriptor::computeGradient ( const oclMat img,
oclMat grad,
oclMat qangle 
)
protected

§ detect()

void cv::ocl::HOGDescriptor::detect ( const oclMat img,
vector< Point > &  found_locations,
double  hit_threshold = 0,
Size  win_stride = Size(),
Size  padding = Size() 
)

§ detectMultiScale()

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 
)

§ getBlockHistogramSize()

size_t cv::ocl::HOGDescriptor::getBlockHistogramSize ( ) const

§ getDefaultPeopleDetector()

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

§ getDescriptors()

void cv::ocl::HOGDescriptor::getDescriptors ( const oclMat img,
Size  win_stride,
oclMat descriptors,
int  descr_format = DESCR_FORMAT_COL_BY_COL 
)

§ getDescriptorSize()

size_t cv::ocl::HOGDescriptor::getDescriptorSize ( ) const

§ getPeopleDetector48x96()

static vector<float> cv::ocl::HOGDescriptor::getPeopleDetector48x96 ( )
static

§ getPeopleDetector64x128()

static vector<float> cv::ocl::HOGDescriptor::getPeopleDetector64x128 ( )
static

§ getWinSigma()

double cv::ocl::HOGDescriptor::getWinSigma ( ) const
protected

§ init_buffer()

void cv::ocl::HOGDescriptor::init_buffer ( const oclMat img,
Size  win_stride 
)
protected

§ numPartsWithin() [1/2]

static int cv::ocl::HOGDescriptor::numPartsWithin ( int  size,
int  part_size,
int  stride 
)
staticprotected

§ numPartsWithin() [2/2]

static Size cv::ocl::HOGDescriptor::numPartsWithin ( Size  size,
Size  part_size,
Size  stride 
)
staticprotected

§ setSVMDetector()

void cv::ocl::HOGDescriptor::setSVMDetector ( const vector< float > &  detector)

Member Data Documentation

§ block_hists

oclMat cv::ocl::HOGDescriptor::block_hists
protected

§ block_size

Size cv::ocl::HOGDescriptor::block_size

§ block_stride

Size cv::ocl::HOGDescriptor::block_stride

§ cell_size

Size cv::ocl::HOGDescriptor::cell_size

§ detector

oclMat cv::ocl::HOGDescriptor::detector
protected

§ effect_size

Size cv::ocl::HOGDescriptor::effect_size
protected

§ free_coef

float cv::ocl::HOGDescriptor::free_coef
protected

§ gamma_correction

bool cv::ocl::HOGDescriptor::gamma_correction

§ grad

oclMat cv::ocl::HOGDescriptor::grad
protected

§ image_scale

oclMat cv::ocl::HOGDescriptor::image_scale
protected

§ labels

oclMat cv::ocl::HOGDescriptor::labels
protected

§ labels_host

Mat cv::ocl::HOGDescriptor::labels_host
protected

§ nbins

int cv::ocl::HOGDescriptor::nbins

§ nlevels

int cv::ocl::HOGDescriptor::nlevels

§ qangle

oclMat cv::ocl::HOGDescriptor::qangle
protected

§ threshold_L2hys

double cv::ocl::HOGDescriptor::threshold_L2hys

§ win_sigma

double cv::ocl::HOGDescriptor::win_sigma

§ win_size

Size cv::ocl::HOGDescriptor::win_size

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