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

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::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

§ checkDetectorSize()

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

§ computeBlockHistograms()

void cv::gpu::HOGDescriptor::computeBlockHistograms ( const GpuMat img)
protected

§ computeConfidence()

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 
)

§ computeConfidenceMultiScale()

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 
)

§ computeGradient()

void cv::gpu::HOGDescriptor::computeGradient ( const GpuMat img,
GpuMat grad,
GpuMat qangle 
)
protected

§ detect()

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

§ detectMultiScale()

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 
)

§ getBlockHistogramSize()

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

§ getBuffer() [1/2]

static GpuMat cv::gpu::HOGDescriptor::getBuffer ( const Size sz,
int  type,
GpuMat buf 
)
staticprotected

§ getBuffer() [2/2]

static GpuMat cv::gpu::HOGDescriptor::getBuffer ( int  rows,
int  cols,
int  type,
GpuMat buf 
)
staticprotected

§ getDefaultPeopleDetector()

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

§ getDescriptors()

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

§ getDescriptorSize()

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

§ getPeopleDetector48x96()

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

§ getPeopleDetector64x128()

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

§ getWinSigma()

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

§ numPartsWithin() [1/2]

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

§ numPartsWithin() [2/2]

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

§ setSVMDetector()

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

Member Data Documentation

§ block_hists

GpuMat cv::gpu::HOGDescriptor::block_hists
protected

§ block_hists_buf

GpuMat cv::gpu::HOGDescriptor::block_hists_buf
protected

§ block_size

Size cv::gpu::HOGDescriptor::block_size

§ block_stride

Size cv::gpu::HOGDescriptor::block_stride

§ cell_size

Size cv::gpu::HOGDescriptor::cell_size

§ detector

GpuMat cv::gpu::HOGDescriptor::detector
protected

§ free_coef

float cv::gpu::HOGDescriptor::free_coef
protected

§ gamma_correction

bool cv::gpu::HOGDescriptor::gamma_correction

§ grad

GpuMat cv::gpu::HOGDescriptor::grad
protected

§ grad_buf

GpuMat cv::gpu::HOGDescriptor::grad_buf
protected

§ image_scales

std::vector<GpuMat> cv::gpu::HOGDescriptor::image_scales
protected

§ labels

GpuMat cv::gpu::HOGDescriptor::labels
protected

§ labels_buf

GpuMat cv::gpu::HOGDescriptor::labels_buf
protected

§ labels_host

Mat cv::gpu::HOGDescriptor::labels_host
protected

§ nbins

int cv::gpu::HOGDescriptor::nbins

§ nlevels

int cv::gpu::HOGDescriptor::nlevels

§ qangle

GpuMat cv::gpu::HOGDescriptor::qangle
protected

§ qangle_buf

GpuMat cv::gpu::HOGDescriptor::qangle_buf
protected

§ threshold_L2hys

double cv::gpu::HOGDescriptor::threshold_L2hys

§ win_sigma

double cv::gpu::HOGDescriptor::win_sigma

§ win_size

Size cv::gpu::HOGDescriptor::win_size

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