From 74ec5d7cbb0b425a1c6b0c1e8110fd4d84ad7b4d Mon Sep 17 00:00:00 2001 From: Marina Kolpakova Date: Fri, 1 Jun 2012 15:15:58 +0000 Subject: [PATCH] fix for ORB tests --- modules/gpu/src/orb.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/gpu/src/orb.cpp b/modules/gpu/src/orb.cpp index f49caf098a..2621398878 100644 --- a/modules/gpu/src/orb.cpp +++ b/modules/gpu/src/orb.cpp @@ -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); if (!mask.empty()) + { resize(maskPyr_[level - 1], maskPyr_[level], sz, 0, 0, INTER_LINEAR); + threshold(maskPyr_[level], maskPyr_[level], 254, 0, THRESH_TOZERO); + } } } else