Ask Your Question
0

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

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

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 -0600 )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 -0600 )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 -0600 )edit
1

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

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

1 answer

Sort by ยป oldest newest most voted
1

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

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

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 ( 2020-06-11 22:50:29 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 9,751 times

Last updated: May 02 '19