1 #include "perf_cpu_precomp.hpp"
\r
5 using namespace cv::gpu;
\r
7 void fill(Mat& m, double a, double b)
\r
10 rng.fill(m, RNG::UNIFORM, a, b);
\r
13 void PrintTo(const CvtColorInfo& info, ostream* os)
\r
15 static const char* str[] =
\r
131 //YUV 4:2:0 formats family
\r
154 //YUV 4:2:2 formats family
\r
178 // alpha premultiplication
\r
185 *os << str[info.code];
\r
188 void cv::gpu::PrintTo(const DeviceInfo& info, ostream* os)
\r
190 *os << info.name();
\r
193 Mat readImage(const string& fileName, int flags)
\r
195 return imread(perf::TestBase::getDataPath(fileName), flags);
\r
198 const vector<DeviceInfo>& devices()
\r
200 static vector<DeviceInfo> devs;
\r
201 static bool first = true;
\r
205 int deviceCount = getCudaEnabledDeviceCount();
\r
207 devs.reserve(deviceCount);
\r
209 for (int i = 0; i < deviceCount; ++i)
\r
211 DeviceInfo info(i);
\r
212 if (info.isCompatible())
\r
213 devs.push_back(info);
\r