mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 05:06:29 +08:00
fix according review
This commit is contained in:
parent
153ac43d3b
commit
2e2ca58b70
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user