GpuMat produces error

asked 2017-04-20 05:40:37 -0500

DEHANDPI gravatar image

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

edit retag flag offensive close merge delete

Comments

please spare us duplicate questions about the same topic

berak gravatar imageberak ( 2017-04-20 06:15:52 -0500 )edit

also, the output clearly says what is wrong, you are using OpenCV built without GPU support and try to push data in a GPU matrix ...

StevenPuttemans gravatar imageStevenPuttemans ( 2017-04-21 02:42:01 -0500 )edit