Home
last modified time | relevance | path

Searched refs:block_hist_size (Results 1 – 5 of 5) sorted by relevance

/external/opencv3/modules/cudaobjdetect/src/cuda/
Dhog.cu99 int block_hist_size = nbins * CELLS_PER_BLOCK_X * CELLS_PER_BLOCK_Y; in set_up_constants() local
100 … cudaSafeCall( cudaMemcpyToSymbol(cblock_hist_size, &block_hist_size, sizeof(block_hist_size)) ); in set_up_constants()
102 int block_hist_size_2up = power_2up(block_hist_size); in set_up_constants()
105 int descr_width = nblocks_win_x * block_hist_size; in set_up_constants()
263 __global__ void normalize_hists_kernel_many_blocks(const int block_hist_size, in normalize_hists_kernel_many_blocks() argument
272 block_hist_size + threadIdx.x; in normalize_hists_kernel_many_blocks()
278 if (threadIdx.x < block_hist_size) in normalize_hists_kernel_many_blocks()
283 float scale = 1.0f / (::sqrtf(sum) + 0.1f * block_hist_size); in normalize_hists_kernel_many_blocks()
290 if (threadIdx.x < block_hist_size) in normalize_hists_kernel_many_blocks()
300 int block_hist_size = nbins * CELLS_PER_BLOCK_X * CELLS_PER_BLOCK_Y; in normalize_hists() local
[all …]
/external/opencv3/modules/cudaobjdetect/test/
Dtest_objdetect.cpp66 int block_hist_size; member
201 block_hist_size = 36; in CUDA_TEST_P()
202 cv::Size descr_size_expected = cv::Size(blocks_per_win_x * blocks_per_win_y * block_hist_size, in CUDA_TEST_P()
215 for (int k = 0; k < block_hist_size; ++k) in CUDA_TEST_P()
216 ASSERT_EQ(l[(y * blocks_per_win_x + x) * block_hist_size + k], in CUDA_TEST_P()
217 r[(x * blocks_per_win_y + y) * block_hist_size + k]); in CUDA_TEST_P()
/external/opencv3/modules/cudaobjdetect/src/
Dhog.cpp255 size_t block_hist_size = getBlockHistogramSize(); in setSVMDetector() local
262 … const float* src = detector.ptr<float>() + (j * blocks_per_win.height + i) * block_hist_size; in setSVMDetector()
263 … float* dst = &detector_reordered[0] + (i * blocks_per_win.width + j) * block_hist_size; in setSVMDetector()
264 for (size_t k = 0; k < block_hist_size; ++k) in setSVMDetector()
453 const size_t block_hist_size = getBlockHistogramSize(); in compute() local
457 …s.create(wins_per_img.area(), static_cast<int>(blocks_per_win.area() * block_hist_size), CV_32FC1); in compute()
485 size_t block_hist_size = getBlockHistogramSize(); in getTotalHistSize() local
487 return static_cast<int>(block_hist_size * blocks_per_img.area()); in getTotalHistSize()
/external/opencv3/modules/objdetect/src/
Dhog.cpp121 size_t block_hist_size = getBlockHistogramSize(blockSize, cellSize, nbins); in setSVMDetector() local
127 const float *src = &svmDetector[0] + (j * blocks_per_img.height + i) * block_hist_size; in setSVMDetector()
128 … float *dst = detector_reordered.ptr<float>() + (i * blocks_per_img.width + j) * block_hist_size; in setSVMDetector()
129 for (size_t k = 0; k < block_hist_size; ++k) in setSVMDetector()
1131 … UMat grad, UMat qangle, UMat gauss_w_lut, UMat block_hists, size_t block_hist_size) in ocl_compute_hists() argument
1167 idx = k.set(idx, (int)block_hist_size); in ocl_compute_hists()
1193 int block_hist_size = nbins * CELLS_PER_BLOCK_X * CELLS_PER_BLOCK_Y; in ocl_normalize_hists() local
1219 int blocks_in_group = NTHREADS / block_hist_size; in ocl_normalize_hists()
1220 nthreads = blocks_in_group * block_hist_size; in ocl_normalize_hists()
1238 nthreads = power_2up(block_hist_size); in ocl_normalize_hists()
[all …]
/external/opencv3/modules/objdetect/src/opencl/
Dobjdetect_hog.cl254 const int nthreads, const int block_hist_size, const int img_block_width,
262 block_hist_size + tid;
265 if (tid < block_hist_size)
273 float scale = 1.0f / (sqrt(sum) + 0.1f * block_hist_size);
283 if (tid < block_hist_size)