From 2e2ca58b7093cfeea5766f0e578920490129ea27 Mon Sep 17 00:00:00 2001 From: krodyush Date: Fri, 30 May 2014 15:44:51 +0400 Subject: [PATCH] fix according review --- modules/video/src/lkpyramid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/video/src/lkpyramid.cpp b/modules/video/src/lkpyramid.cpp index f9d011b40..3e939391c 100644 --- a/modules/video/src/lkpyramid.cpp +++ b/modules/video/src/lkpyramid.cpp @@ -895,8 +895,8 @@ namespace cv int pitchAlign = (int)ocl::Device::getDefault().imagePitchAlignment(); if (pitchAlign>0) { - prevPyr[0] = UMat(prevImg.rows,(prevImg.cols+pitchAlign-1)&(-pitchAlign),CV_32F).colRange(0,prevImg.cols); - nextPyr[0] = UMat(nextImg.rows,(nextImg.cols+pitchAlign-1)&(-pitchAlign),CV_32F).colRange(0,nextImg.cols); + prevPyr[0] = UMat(prevImg.rows,(prevImg.cols+pitchAlign-1)&(-pitchAlign),CV_32FC1).colRange(0,prevImg.cols); + nextPyr[0] = UMat(nextImg.rows,(nextImg.cols+pitchAlign-1)&(-pitchAlign),CV_32FC1).colRange(0,nextImg.cols); for (int level = 1; level <= maxLevel; ++level) { int cols,rows;