fix for ORB tests
authorMarina Kolpakova <no@email>
Fri, 1 Jun 2012 15:15:58 +0000 (15:15 +0000)
committerMarina Kolpakova <no@email>
Fri, 1 Jun 2012 15:15:58 +0000 (15:15 +0000)
modules/gpu/src/orb.cpp

index f49caf0..2621398 100644 (file)
@@ -513,7 +513,10 @@ void cv::gpu::ORB_GPU::buildScalePyramids(const GpuMat& image, const GpuMat& mas
                 resize(imagePyr_[level - 1], imagePyr_[level], sz, 0, 0, INTER_LINEAR);\r
 \r
                 if (!mask.empty())\r
+                {\r
                     resize(maskPyr_[level - 1], maskPyr_[level], sz, 0, 0, INTER_LINEAR);\r
+                    threshold(maskPyr_[level], maskPyr_[level], 254, 0, THRESH_TOZERO);\r
+                }\r
             }\r
         }\r
         else\r