From e3c93ad9cfc2a8c5f5bdc5a464885dd24073080f Mon Sep 17 00:00:00 2001 From: "marina.kolpakova" Date: Tue, 13 Nov 2012 23:52:18 +0400 Subject: [PATCH] Revert "Merge pull request #141 from jet47/gpu-pyrlk-fix" because this bug appears only in 2.4 This reverts commit 7e301c5c0e0591a751258d044f5f2f0889231591, reversing changes made to b5e009eb87154b830759fe9276b6233f852a4e77. --- modules/gpu/src/pyrlk.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/gpu/src/pyrlk.cpp b/modules/gpu/src/pyrlk.cpp index a513dde..47ab904 100644 --- a/modules/gpu/src/pyrlk.cpp +++ b/modules/gpu/src/pyrlk.cpp @@ -211,9 +211,6 @@ void cv::gpu::PyrLKOpticalFlow::dense(const GpuMat& prevImg, const GpuMat& nextI pyrDown(nextPyr_[level - 1], nextPyr_[level]); } - uPyr_.resize(2); - vPyr_.resize(2); - ensureSizeIsEnough(prevImg.size(), CV_32FC1, uPyr_[0]); ensureSizeIsEnough(prevImg.size(), CV_32FC1, vPyr_[0]); ensureSizeIsEnough(prevImg.size(), CV_32FC1, uPyr_[1]); -- 2.7.4