Ask Your Question
0

Where to find /opencv2/gpu/gpu.hpp in Opencv 3.1.0

asked 2016-10-20 05:54:32 -0500

lm35 gravatar image

I have recently installed OpenCV 3.1.0 from git, with CUDA enabled while installation. Now when I try to compile my code using a Makefile , I get the following error. fatal error: opencv2/gpu/gpu.hpp: No such file or directory compilation terminated. When I checked /usr/local/include/opencv2/gpu (where gpu.hpp resides in earlier versions of openCV), I couldn't find that. Is there any equivalent to this file in OpenCV3.1.0. Or am I doing or understanding something in the wrong way.

Please help

edit retag flag offensive close merge delete

Comments

1

there is no more gpu module in opencv3. i guess, you're trying with code, that worked nice with opencv2.4 ?

berak gravatar imageberak ( 2016-10-20 05:56:14 -0500 )edit

Yeah, you are correct I am using a code from link, which used older versions of OpenCV and CUDA. thankyou.

lm35 gravatar imagelm35 ( 2016-10-20 06:02:53 -0500 )edit

@berak can you please suggest a link from where I can get knowledge of GPU coding for OpenCV 3.1.0 I couldn't find anything other than this link

lm35 gravatar imagelm35 ( 2016-10-20 06:10:26 -0500 )edit
1

maybe take a look, how the gpu samples handle it ?

berak gravatar imageberak ( 2016-10-20 07:02:42 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2019-05-02 23:26:33 -0500

vitrion gravatar image

Hi. I had the same issue while I was trying to compile an OpenCV 4.1.0 example. As commented here, there is no more "opencv2/gpu.h" neither "opencv2/gpumat.h" headers. I solved it by replacing every "gpu" namespace in my code for the "cuda" namespace. Also, I included the "opencv2/core/cuda.hpp" and "opencv2/cudaarithm.h" headers.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-10-20 05:54:32 -0500

Seen: 5,794 times

Last updated: May 02