First time here? Check out the FAQ!

Ask Your Question
0

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

asked Oct 20 '16

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

Preview: (hide)

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 (Oct 20 '16)edit

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

lm35 gravatar imagelm35 (Oct 20 '16)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 (Oct 20 '16)edit
1

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

berak gravatar imageberak (Oct 20 '16)edit

1 answer

Sort by » oldest newest most voted
1

answered May 3 '19

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.

Preview: (hide)

Comments

Hello, I know the gpu module in not longer exist in opencv3. However, I cannot include the "opencv2/cudaarithm.h" headers also. The error is shown in the following line:

fatal error: opencv2/cudaarithm.h: No such file or directory

May I know cv::gpu::getPeopleDetector64x128() in opencv2 is currently in which module in opencv3?

Alex Beh CJ gravatar imageAlex Beh CJ (Jun 12 '0)edit

Question Tools

1 follower

Stats

Asked: Oct 20 '16

Seen: 10,407 times

Last updated: May 02 '19