Size cells_per_block = Size(block_size.width / cell_size.width, block_size.height / cell_size.height);
CV_Assert(cells_per_block == Size(2, 2));
-
- cv::Size blocks_per_win = numPartsWithin(win_size, block_size, block_stride);
- hog::set_up_constants(nbins, block_stride.width, block_stride.height, blocks_per_win.width, blocks_per_win.height);
}
size_t cv::gpu::HOGDescriptor::getDescriptorSize() const
void cv::gpu::HOGDescriptor::computeBlockHistograms(const GpuMat& img)
{
+ cv::Size blocks_per_win = numPartsWithin(win_size, block_size, block_stride);
+ hog::set_up_constants(nbins, block_stride.width, block_stride.height, blocks_per_win.width, blocks_per_win.height);
+
computeGradient(img, grad, qangle);
size_t block_hist_size = getBlockHistogramSize();