test for clEnqueueReadBufferRect

This commit is contained in:
Ilya Lavrenov 2014-03-06 12:11:40 +04:00
parent 0692a674d1
commit f404315368

View File

@ -786,4 +786,13 @@ TEST(UMat, setOpenCL)
cv::ocl::setUseOpenCL(useOCL);
}
TEST(UMat, ReadBufferRect)
{
UMat m(1, 10000, CV_32FC2, Scalar::all(-1));
Mat t(1, 9000, CV_32FC2, Scalar::all(-200)), t2(1, 9000, CV_32FC2, Scalar::all(-1));
m.colRange(0, 9000).copyTo(t);
EXPECT_MAT_NEAR(t, t2, 0);
}
} } // namespace cvtest::ocl