projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0692a67
)
test for clEnqueueReadBufferRect
author
Ilya Lavrenov
<ilya.lavrenov@itseez.com>
Thu, 6 Mar 2014 08:11:40 +0000
(12:11 +0400)
committer
Ilya Lavrenov
<ilya.lavrenov@itseez.com>
Thu, 6 Mar 2014 08:11:46 +0000
(12:11 +0400)
modules/core/test/test_umat.cpp
patch
|
blob
|
history
diff --git
a/modules/core/test/test_umat.cpp
b/modules/core/test/test_umat.cpp
index
fd344a9
..
60f9ee6
100644
(file)
--- a/
modules/core/test/test_umat.cpp
+++ b/
modules/core/test/test_umat.cpp
@@
-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