From 3f1c6d7357ef7f00e271e53441469c226fd9e46c Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Sat, 28 Apr 2012 13:12:14 +0000 Subject: [PATCH] fixed PyrLKOpticalFlow.dense (final result size) --- modules/gpu/src/pyrlk.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gpu/src/pyrlk.cpp b/modules/gpu/src/pyrlk.cpp index 2722282..394c41f 100644 --- a/modules/gpu/src/pyrlk.cpp +++ b/modules/gpu/src/pyrlk.cpp @@ -293,8 +293,8 @@ void cv::gpu::PyrLKOpticalFlow::dense(const GpuMat& prevImg, const GpuMat& nextI } else { - pyrUp(uPyr_[level], uPyr_[level - 1]); - pyrUp(vPyr_[level], vPyr_[level - 1]); + resize(uPyr_[level], uPyr_[level - 1], uPyr_[level - 1].size()); + resize(vPyr_[level], vPyr_[level - 1], vPyr_[level - 1].size()); multiply(uPyr_[level - 1], Scalar::all(2), uPyr_[level - 1]); multiply(vPyr_[level - 1], Scalar::all(2), vPyr_[level - 1]); -- 2.7.4