Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

GpuMat produces error

I wrote this :

  image1 = imread(QString(files[i]).toStdString(), 0);
  GpuMat img1GPU(image1);

and the following error

OpenCV Error: No GPU support (The library is compiled without CUDA support) in mallocPitch, file /build/buildd/opencv-2.4.8+dfsg1/modules/dynamicuda/include/opencv2/dynamicuda/dynamicuda.hpp, line 126 terminate called after throwing an instance of 'cv::Exception' what(): /build/buildd/opencv-2.4.8+dfsg1/modules/dynamicuda/include/opencv2/dynamicuda/dynamicuda.hpp:126: error: (-216) The library is compiled without CUDA support in function mallocPitch

I am sure that it's the second code line that makes a problem. Thanks for help