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 |