fixed gpu PyrLKSparse perf test

This commit is contained in:
Vladislav Vinogradov 2012-08-29 10:51:40 +04:00
parent 0adbead654
commit 14694343cb

View File

@ -219,7 +219,7 @@ PERF_TEST_P(ImagePair_Gray_NPts_WinSz_Levels_Iters, Video_PyrLKOpticalFlowSparse
if (runOnGpu)
{
cv::gpu::GpuMat d_pts(pts);
cv::gpu::GpuMat d_pts(pts.reshape(2, 1));
cv::gpu::PyrLKOpticalFlow d_pyrLK;
d_pyrLK.winSize = cv::Size(winSize, winSize);