From cc675c7bb72031f920be9f3d3d87e871bce9505d Mon Sep 17 00:00:00 2001 From: Alexey Spizhevoy Date: Fri, 3 Dec 2010 12:03:53 +0000 Subject: [PATCH] added data for CC2.0 in gpu meanShiftProc test --- tests/gpu/src/meanshift.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/gpu/src/meanshift.cpp b/tests/gpu/src/meanshift.cpp index e46ee8600..42fc2cef9 100644 --- a/tests/gpu/src/meanshift.cpp +++ b/tests/gpu/src/meanshift.cpp @@ -191,7 +191,15 @@ struct CV_GpuMeanShiftProcTest : public CvTest d_spmap.download(spmap); cv::Mat spmap_template; - cv::FileStorage fs(std::string(ts->get_data_path()) + "meanshift/spmap.yaml", cv::FileStorage::READ); + cv::FileStorage fs; + + int major, minor; + cv::gpu::getComputeCapability(cv::gpu::getDevice(), major, minor); + + if (major == 1) + fs.open(std::string(ts->get_data_path()) + "meanshift/spmap_1x.yaml", cv::FileStorage::READ); + else + fs.open(std::string(ts->get_data_path()) + "meanshift/spmap.yaml", cv::FileStorage::READ); fs["spmap"] >> spmap_template; for (int y = 0; y < spmap.rows; ++y) {