From a6bc747a54f725d7fba9a404cdcac537568f22b8 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Tue, 14 Feb 2012 11:48:40 +0000 Subject: [PATCH] minor fix : doesn't save outliers --- modules/gpu/src/cuda/pyrlk.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gpu/src/cuda/pyrlk.cu b/modules/gpu/src/cuda/pyrlk.cu index e40ade8..32dabb1 100644 --- a/modules/gpu/src/cuda/pyrlk.cu +++ b/modules/gpu/src/cuda/pyrlk.cu @@ -535,7 +535,7 @@ namespace cv { namespace gpu { namespace device for (int k = 0; k < c_iters; ++k) { if (nextPt.x < -c_winSize_x || nextPt.x >= cols || nextPt.y < -c_winSize_y || nextPt.y >= rows) - break; + return; float b1 = 0; float b2 = 0; @@ -555,7 +555,7 @@ namespace cv { namespace gpu { namespace device b1 *= SCALE; b2 *= SCALE; - + float2 delta; delta.x = A12 * b2 - A22 * b1; delta.y = A12 * b1 - A11 * b2; -- 2.7.4