{
std::vector<cv::ocl::Info> info;
cv::ocl::getDevice(info);
+
+ DebugOut()<<"There are "<<info.size()<<" OpenCL devices on this system"<<endl;
+
+ if(!info.size())
+ {
+ DebugOut()<<"No CL devices. Disabling OpenCL"<<endl;
+ shared->useOpenCl = false;
+ }
+
+ for(cv::ocl::Info i : info)
+ {
+ for(auto name : i.DeviceName)
+ {
+ DebugOut()<<"DeviceName: "<<name<<endl;
+ }
+ }
}
#endif
{
#ifdef OPENCL
cv::Scalar stdDev;
- cv::ocl::meanStdDev(qImg, avgPixelIntensity, stdDev);
+ cv::ocl::oclMat src(qImg);
+ cv::ocl::meanStdDev(src, avgPixelIntensity, stdDev);
#endif
}
else if(shared->useCuda)