/external/opencv3/modules/cudaobjdetect/src/ |
D | hog.cpp | 63 const cv::cuda::PtrStepSzb& qangle, float sigma, float* block_hists); 85 … float angle_scale, cv::cuda::PtrStepSzf grad, cv::cuda::PtrStepSzb qangle, bool correct_gamma); 87 … float angle_scale, cv::cuda::PtrStepSzf grad, cv::cuda::PtrStepSzb qangle, bool correct_gamma); 174 void computeGradient(const GpuMat& img, GpuMat& grad, GpuMat& qangle); 498 GpuMat qangle = pool.getBuffer(img.size(), CV_8UC2); in computeBlockHistograms() local 499 computeGradient(img, grad, qangle); in computeBlockHistograms() 506 grad, qangle, in computeBlockHistograms() 517 void HOG_Impl::computeGradient(const GpuMat& img, GpuMat& grad, GpuMat& qangle) in computeGradient() argument 520 qangle.create(img.size(), CV_8UC2); in computeGradient() 526 …ompute_gradients_8UC1(nbins_, img.rows, img.cols, img, angleScale, grad, qangle, gamma_correction_… in computeGradient() [all …]
|
/external/opencv3/modules/cudaobjdetect/src/cuda/ |
D | hog.cu | 119 … const PtrStepb qangle, float scale, float* block_hists) in compute_hists_kernel_many_blocks() argument 138 const unsigned char* qangle_ptr = qangle.ptr(offset_y) + offset_x * 2; in compute_hists_kernel_many_blocks() 158 qangle_ptr += qangle.step; in compute_hists_kernel_many_blocks() 197 const PtrStepSzb& qangle, float sigma, float* block_hists) in compute_hists() argument 219 img_block_width, grad, qangle, scale, block_hists); in compute_hists() 554 … float angle_scale, PtrStepf grad, PtrStepb qangle) in compute_gradients_8UC4_kernel() argument 649 ((uchar2*)qangle.ptr(blockIdx.y))[x] = make_uchar2(hidx, (hidx + 1) % cnbins); in compute_gradients_8UC4_kernel() 656 … float angle_scale, PtrStepSzf grad, PtrStepSzb qangle, bool correct_gamma) in compute_gradients_8UC4() argument 665 …_gradients_8UC4_kernel<nthreads, 1><<<gdim, bdim>>>(height, width, img, angle_scale, grad, qangle); in compute_gradients_8UC4() 667 …_gradients_8UC4_kernel<nthreads, 0><<<gdim, bdim>>>(height, width, img, angle_scale, grad, qangle); in compute_gradients_8UC4() [all …]
|
/external/opencv3/apps/traincascade/ |
D | HOGfeatures.cpp | 165 Mat qangle(gradSize, CV_8U); in integralHistogram() local 194 uchar* qanglePtr = qangle.ptr(y); in integralHistogram() 224 int binsStep = (int)( qangle.step / sizeof(uchar) ); in integralHistogram() 231 binsBuf = qangle.ptr(); in integralHistogram() 235 for( y = 0; y < qangle.rows; y++ ) in integralHistogram() 239 for( x = 0; x < qangle.cols; x++ ) in integralHistogram()
|
/external/opencv3/modules/objdetect/src/ |
D | hog.cpp | 225 void HOGDescriptor::computeGradient(const Mat& img, Mat& grad, Mat& qangle, in computeGradient() argument 233 qangle.create(gradsize, CV_8UC2); // [0..nbins-1] - quantized gradient orientation in computeGradient() 318 uchar* qanglePtr = qangle.ptr(y); in computeGradient() 525 Mat grad, qangle; member 551 descriptor->computeGradient(_img, grad, qangle, _paddingTL, _paddingBR); in init() 739 data->qangleOfs = (qangle.cols*i + j)*2; in init() 795 const uchar* qanglePtr = qangle.ptr(pt.y) + pt.x*2; in getBlock() 1086 UMat grad, UMat qangle, bool correct_gamma, int nbins) in ocl_compute_gradients_8UC1() argument 1098 int qangle_elem_size = CV_ELEM_SIZE1(qangle.type()); in ocl_compute_gradients_8UC1() 1099 int qangle_step = (int)qangle.step / (2 * qangle_elem_size); in ocl_compute_gradients_8UC1() [all …]
|
/external/opencv3/modules/objdetect/src/opencl/ |
D | objdetect_hog.cl | 70 __global const float* grad, __global const QANGLE_TYPE* qangle, 98 qangle + offset_y * qangle_step + (offset_x << 1) : qangle; 568 const __global uchar4 * img, __global float * grad, __global QANGLE_TYPE * qangle, 657 qangle[(gidY * qangle_step + x) << 1] = hidx; 658 qangle[((gidY * qangle_step + x) << 1) + 1] = (hidx + 1) % cnbins; 667 __global const uchar * img, __global float * grad, __global QANGLE_TYPE * qangle, 717 qangle[ (gidY * qangle_step + x) << 1 ] = hidx; 718 qangle[ ((gidY * qangle_step + x) << 1) + 1 ] = (hidx + 1) % cnbins;
|
/external/opencv3/modules/objdetect/test/ |
D | test_cascadeandhog.cpp | 565 virtual void computeGradient(const Mat& img, Mat& grad, Mat& qangle, 629 Mat grad, qangle; member 655 descriptor->computeGradient(_img, grad, qangle, _paddingTL, _paddingBR); in init() 800 data->qangleOfs = (qangle.cols*i + j)*2; in init() 856 const uchar* qanglePtr = qangle.ptr(pt.y) + pt.x*2; in getBlock() 1185 void HOGDescriptorTester::computeGradient(const Mat& img, Mat& grad, Mat& qangle, in computeGradient() argument 1193 qangle.create(gradsize, CV_8UC2); // [0..nbins-1] - quantized gradient orientation in computeGradient() 1241 uchar* qanglePtr = (uchar*)qangle.ptr(y); in computeGradient() 1314 Mat actual_mats[2], reference_mats[2] = { grad, qangle }; in computeGradient()
|