#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 | 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< GpuMat > | image_scales |
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 | |||
) |
size_t cv::gpu::HOGDescriptor::getDescriptorSize | ( | ) | const |
size_t cv::gpu::HOGDescriptor::getBlockHistogramSize | ( | ) | const |
void cv::gpu::HOGDescriptor::setSVMDetector | ( | const vector< float > & | detector | ) |
static vector<float> cv::gpu::HOGDescriptor::getDefaultPeopleDetector | ( | ) | [static] |
static vector<float> cv::gpu::HOGDescriptor::getPeopleDetector48x96 | ( | ) | [static] |
static vector<float> cv::gpu::HOGDescriptor::getPeopleDetector64x128 | ( | ) | [static] |
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 | |||
) |
void cv::gpu::HOGDescriptor::getDescriptors | ( | const GpuMat & | img, | |
Size | win_stride, | |||
GpuMat & | descriptors, | |||
int | descr_format = DESCR_FORMAT_COL_BY_COL | |||
) |
void cv::gpu::HOGDescriptor::computeBlockHistograms | ( | const GpuMat & | img | ) | [protected] |
void cv::gpu::HOGDescriptor::computeGradient | ( | const GpuMat & | img, | |
GpuMat & | grad, | |||
GpuMat & | qangle | |||
) | [protected] |
double cv::gpu::HOGDescriptor::getWinSigma | ( | ) | const [protected] |
bool cv::gpu::HOGDescriptor::checkDetectorSize | ( | ) | const [protected] |
static int cv::gpu::HOGDescriptor::numPartsWithin | ( | int | size, | |
int | part_size, | |||
int | stride | |||
) | [static, protected] |
static Size cv::gpu::HOGDescriptor::numPartsWithin | ( | Size | size, | |
Size | part_size, | |||
Size | stride | |||
) | [static, protected] |
static GpuMat cv::gpu::HOGDescriptor::getBuffer | ( | const Size & | sz, | |
int | type, | |||
GpuMat & | buf | |||
) | [static, protected] |
static GpuMat cv::gpu::HOGDescriptor::getBuffer | ( | int | rows, | |
int | cols, | |||
int | type, | |||
GpuMat & | buf | |||
) | [static, protected] |
float cv::gpu::HOGDescriptor::free_coef [protected] |
GpuMat cv::gpu::HOGDescriptor::detector [protected] |
GpuMat cv::gpu::HOGDescriptor::labels [protected] |
GpuMat cv::gpu::HOGDescriptor::labels_buf [protected] |
Mat cv::gpu::HOGDescriptor::labels_host [protected] |
GpuMat cv::gpu::HOGDescriptor::block_hists [protected] |
GpuMat cv::gpu::HOGDescriptor::block_hists_buf [protected] |
GpuMat cv::gpu::HOGDescriptor::grad [protected] |
GpuMat cv::gpu::HOGDescriptor::qangle [protected] |
GpuMat cv::gpu::HOGDescriptor::grad_buf [protected] |
GpuMat cv::gpu::HOGDescriptor::qangle_buf [protected] |
std::vector<GpuMat> cv::gpu::HOGDescriptor::image_scales [protected] |