Perf tests: method ::perf::TestBase::getDataPath made public static; added base CUDA detection into run.py script

This commit is contained in:
Andrey Kamaev
2011-09-08 11:01:45 +00:00
parent ccfb3e6a21
commit 6cb1036e04
4 changed files with 14 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ using namespace cv::gpu;
Mat readImage(const string& fileName, int flags)
{
return imread(string(cvtest::TS::ptr()->get_data_path()) + fileName, flags);
return imread(::perf::TestBase::getDataPath(fileName), flags);
}
bool supportFeature(const DeviceInfo& info, FeatureSet feature)