Commit 153ac43d authored by krodyush's avatar krodyush

opencl opticaflow fix that enables buffer2image extension

parent c9db91ac
...@@ -895,8 +895,8 @@ namespace cv ...@@ -895,8 +895,8 @@ namespace cv
int pitchAlign = (int)ocl::Device::getDefault().imagePitchAlignment(); int pitchAlign = (int)ocl::Device::getDefault().imagePitchAlignment();
if (pitchAlign>0) if (pitchAlign>0)
{ {
prevPyr[0] = UMat(prevImg.rows,(prevImg.cols+pitchAlign-1)&(-pitchAlign),prevImg.type()).colRange(0,prevImg.cols); 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),nextImg.type()).colRange(0,nextImg.cols); nextPyr[0] = UMat(nextImg.rows,(nextImg.cols+pitchAlign-1)&(-pitchAlign),CV_32F).colRange(0,nextImg.cols);
for (int level = 1; level <= maxLevel; ++level) for (int level = 1; level <= maxLevel; ++level)
{ {
int cols,rows; int cols,rows;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment