fixed bug #3069 (infinite loop in GPU LBP Cascade detectMultiScale)
authorVladislav Vinogradov <vlad.vinogradov@itseez.com>
Wed, 5 Jun 2013 10:08:55 +0000 (14:08 +0400)
committerVladislav Vinogradov <vlad.vinogradov@itseez.com>
Wed, 5 Jun 2013 10:08:55 +0000 (14:08 +0400)
modules/gpu/src/cascadeclassifier.cpp

index 814a96b..7b95b69 100644 (file)
@@ -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))
         {