fixed bug #3069 (infinite loop in GPU LBP Cascade detectMultiScale)

pull/953/head
Vladislav Vinogradov 12 years ago
parent 27bff3c175
commit 31a5f7ef3c
  1. 2
      modules/gpu/src/cascadeclassifier.cpp

@ -406,7 +406,7 @@ public:
GpuMat dclassified(1, 1, CV_32S);
cudaSafeCall( cudaMemcpy(dclassified.ptr(), &classified, sizeof(int), cudaMemcpyHostToDevice) );
PyrLavel level(0, 1.0f, image.size(), NxM, minObjectSize);
PyrLavel level(0, scaleFactor, image.size(), NxM, minObjectSize);
while (level.isFeasible(maxObjectSize))
{

Loading…
Cancel
Save