Lines Matching full:nbins
80 static size_t getBlockHistogramSize(Size block_size, Size cell_size, int nbins)
84 return (size_t)(nbins * cells_per_block.area());
94 return (size_t)nbins*
121 size_t block_hist_size = getBlockHistogramSize(blockSize, cellSize, nbins);
151 obj["nbins"] >> nbins;
182 << "nbins" << nbins
214 c.nbins = nbins;
233 qangle.create(gradsize, CV_8UC2); // [0..nbins-1] - quantized gradient orientation
308 float angleScale = signedGradient ? (float)(nbins/(2.0*CV_PI)) : (float)(nbins/CV_PI);
416 __m128i ione = _mm_set1_epi32(1), _nbins = _mm_set1_epi32(nbins), izero = _mm_setzero_si128();
462 hidx += nbins;
463 else if( hidx >= nbins )
464 hidx -= nbins;
466 CV_Assert( (unsigned)hidx < (unsigned)nbins );
470 hidx &= hidx < nbins ? -1 : 0;
558 int i, j, nbins = descriptor->nbins;
564 blockHistogramSize = ncells.width*ncells.height*nbins;
680 data->histOfs[0] = (icellX0*ncells.height + icellY0)*nbins;
682 data->histOfs[1] = (icellX1*ncells.height + icellY0)*nbins;
684 data->histOfs[2] = (icellX0*ncells.height + icellY1)*nbins;
686 data->histOfs[3] = (icellX1*ncells.height + icellY1)*nbins;
697 data->histOfs[0] = (icellX0*ncells.height + icellY1)*nbins;
699 data->histOfs[1] = (icellX1*ncells.height + icellY1)*nbins;
717 data->histOfs[0] = (icellX1*ncells.height + icellY0)*nbins;
719 data->histOfs[1] = (icellX1*ncells.height + icellY1)*nbins;
732 data->histOfs[0] = (icellX1*ncells.height + icellY1)*nbins;
1086 UMat grad, UMat qangle, bool correct_gamma, int nbins)
1112 idx = k.set(idx, nbins);
1117 static bool ocl_computeGradient(InputArray img, UMat grad, UMat qangle, int nbins, Size effect_size, bool gamma_correction, bool signedGradient)
1119 float angleScale = signedGradient ? (float)(nbins/(2.0*CV_PI)) : (float)(nbins/CV_PI);
1122 angleScale, grad, qangle, gamma_correction, nbins);
1130 static bool ocl_compute_hists(int nbins, int block_stride_x, int block_stride_y, int height, int width,
1158 int hists_size = (nbins * CELLS_PER_BLOCK_X * CELLS_PER_BLOCK_Y * 12) * sizeof(float);
1159 int final_hists_size = (nbins * CELLS_PER_BLOCK_X * CELLS_PER_BLOCK_Y) * sizeof(float);
1166 idx = k.set(idx, nbins);
1190 static bool ocl_normalize_hists(int nbins, int block_stride_x, int block_stride_y,
1193 int block_hist_size = nbins * CELLS_PER_BLOCK_X * CELLS_PER_BLOCK_Y;
1206 if ( nbins == 9 )
1327 Size cellSize, int nbins, Size blockStride, Size winSize, float sigma, bool gammaCorrection, double L2HysThreshold, bool signedGradient)
1336 const size_t block_hist_size = getBlockHistogramSize(blockSize, cellSize, nbins);
1353 if(!ocl_computeGradient(_img, grad, qangle, nbins, effect_size, gammaCorrection, signedGradient))
1358 if(!ocl_compute_hists(nbins, blockStride.width, blockStride.height, effect_size.height,
1362 if(!ocl_normalize_hists(nbins, blockStride.width, blockStride.height, effect_size.height,
1412 cellSize, nbins, blockStride, winSize, (float)getWinSigma(), gammaCorrection, L2HysThreshold, signedGradient))
1725 const UMat& oclSvmDetector, Size blockSize, Size cellSize, int nbins, Size blockStride, Size winSize,
1738 const size_t block_hist_size = getBlockHistogramSize(blockSize, cellSize, nbins);
1755 if(!ocl_computeGradient(img, grad, qangle, nbins, effect_size, gammaCorrection, signedGradient))
1760 if(!ocl_compute_hists(nbins, blockStride.width, blockStride.height, effect_size.height,
1764 if(!ocl_normalize_hists(nbins, blockStride.width, blockStride.height, effect_size.height,
1795 int nbins, Size blockStride, Size winSize, bool gammaCorrection,
1810 if(!ocl_detect(_img, locations, hit_threshold, win_stride, oclSvmDetector, blockSize, cellSize, nbins,
1817 if(!ocl_detect(image_scale, locations, hit_threshold, win_stride, oclSvmDetector, blockSize, cellSize, nbins,
1862 blockSize, cellSize, nbins, blockStride, winSize, gammaCorrection, L2HysThreshold, (float)getWinSigma(), free_coef, signedGradient));