Home
last modified time | relevance | path

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

/external/opencv3/modules/imgproc/src/opencl/
Dcanny.cl219 float mag0 = mag[i];
222 if (mag0 > low_thr)
239 if (mag0 > prev_mag && mag0 >= next_mag)
241 value = (mag0 > high_thr) ? 2 : 0;
306 int mag0 = dist(dx[0], dy[0]);
313 if (mag1 > mag0)
315 mag0 = mag1;
323 mag[i] = mag0;
338 int mag0 = mag[lidx + lidy * (GRP_SIZEX + 2)];
343 if (mag0 > low_thr)
[all …]
/external/opencv3/modules/cudaobjdetect/src/cuda/
Dhog.cu625 float mag0 = dx.x * dx.x + dy.x * dy.x; in compute_gradients_8UC4_kernel() local
627 if (mag0 < mag1) in compute_gradients_8UC4_kernel()
631 mag0 = mag1; in compute_gradients_8UC4_kernel()
635 if (mag0 < mag1) in compute_gradients_8UC4_kernel()
639 mag0 = mag1; in compute_gradients_8UC4_kernel()
642 mag0 = ::sqrtf(mag0); in compute_gradients_8UC4_kernel()
650 ((float2*)grad.ptr(blockIdx.y))[x] = make_float2(mag0 * (1.f - ang), mag0 * ang); in compute_gradients_8UC4_kernel()
/external/opencv3/modules/objdetect/src/opencl/
Dobjdetect_hog.cl637 float mag0 = mag.x;
638 if (mag0 < mag.y)
642 mag0 = mag.y;
645 if (mag0 < mag.z)
649 mag0 = mag.z;
659 grad[(gidY * grad_quadstep + x) << 1] = mag0 * (1.f - ang);
660 grad[((gidY * grad_quadstep + x) << 1) + 1] = mag0 * ang;
/external/opencv3/modules/objdetect/test/
Dtest_cascadeandhog.cpp1257 float dx0, dy0, dx, dy, mag0, mag; in computeGradient() local
1263 mag0 = dx0*dx0 + dy0*dy0; in computeGradient()
1269 if( mag0 < mag ) in computeGradient()
1273 mag0 = mag; in computeGradient()
1280 if( mag0 < mag ) in computeGradient()
1284 mag0 = mag; in computeGradient()
/external/opencv3/modules/objdetect/src/
Dhog.cpp375 float dx0, dy0, dx, dy, mag0, mag; in computeGradient() local
381 mag0 = dx0*dx0 + dy0*dy0; in computeGradient()
386 if( mag0 < mag ) in computeGradient()
390 mag0 = mag; in computeGradient()
396 if( mag0 < mag ) in computeGradient()
400 mag0 = mag; in computeGradient()