Ask Your Question
0

namespace “cv::cuda” has no member “resize”

asked 2020-03-19 09:17:34 -0600

KansaiRobot gravatar image

updated 2020-03-19 10:09:41 -0600

I have built opencv from source with cuda support.

Now I am trying to test it using the resize function of cuda.

I went to the [documentation] and it says to add

#include "opencv2/cudawarping.hpp"

which I did but this time the error is

fatal error: opencv2/cudawarping.hpp: No such file or directory
 #include "opencv2/cudawarping.hpp"

How can I use resize within cuda??


I had a similar problem with the normal resize, that was solved by including 'imgproc.hpp

(https://docs.opencv.org/3.4/db/d29/gr...)

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2020-03-19 10:06:27 -0600

berak gravatar image

updated 2020-03-19 10:08:20 -0600

it IS in the cudawarping module and you have to

#include "opencv2/cudawarping.hpp"

(it never says anything about "core" there, you made that up ...)

edit flag offensive delete link more

Comments

My mistake. I miswrote the question. (I corrected it already). I did that and the fatal error appeared. cudawarping.hpp does not exist

After that I was trying things and added the "core" but the original one- the one in the documentation- failed

KansaiRobot gravatar imageKansaiRobot ( 2020-03-19 10:09:55 -0600 )edit

opencv version ? DID you build from src with cuda ?

it for sure exists

berak gravatar imageberak ( 2020-03-19 11:19:40 -0600 )edit

Yes, I did. I followed this: https://www.jetsonhacks.com/2019/11/2... Then with python getBuildInformation I can see that CUDA is active

KansaiRobot gravatar imageKansaiRobot ( 2020-03-19 19:23:27 -0600 )edit

Apparently there is something wrong with the installation. I reinstalled everything from scratch and now it is working.

KansaiRobot gravatar imageKansaiRobot ( 2020-03-29 07:07:30 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2020-03-19 09:17:34 -0600

Seen: 2,049 times

Last updated: Mar 19 '20