[opencv] 105/251: stitching(perf): check for available OpenCL memory
Nobuhiro Iwamatsu
iwamatsu at moszumanska.debian.org
Sun Aug 27 23:27:31 UTC 2017
This is an automated email from the git hooks/post-receive script.
iwamatsu pushed a commit to annotated tag 3.3.0
in repository opencv.
commit 862242aa8d0f8dfe9d8770b95e32a8df332e7491
Author: Alexander Alekhin <alexander.alekhin at intel.com>
Date: Tue Jul 18 17:25:35 2017 +0300
stitching(perf): check for available OpenCL memory
---
modules/stitching/perf/opencl/perf_stitch.cpp | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/stitching/perf/opencl/perf_stitch.cpp b/modules/stitching/perf/opencl/perf_stitch.cpp
index 62a1faa..f7f2ca5 100644
--- a/modules/stitching/perf/opencl/perf_stitch.cpp
+++ b/modules/stitching/perf/opencl/perf_stitch.cpp
@@ -101,6 +101,9 @@ OCL_PERF_TEST_P(stitch, b12, TEST_DETECTORS)
OCL_PERF_TEST_P(stitch, boat, TEST_DETECTORS)
{
+ Size expected_dst_size(10789, 2663);
+ checkDeviceMaxMemoryAllocSize(expected_dst_size, CV_16SC3, 4);
+
UMat pano;
vector<Mat> _imgs;
@@ -132,8 +135,8 @@ OCL_PERF_TEST_P(stitch, boat, TEST_DETECTORS)
stopTimer();
}
- EXPECT_NEAR(pano.size().width, 10789, 200);
- EXPECT_NEAR(pano.size().height, 2663, 100);
+ EXPECT_NEAR(pano.size().width, expected_dst_size.width, 200);
+ EXPECT_NEAR(pano.size().height, expected_dst_size.height, 100);
SANITY_CHECK_NOTHING();
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git
More information about the debian-science-commits
mailing list