Attention! This forum will be made read-only by Dec-20. Please migrate to https://forum.opencv.org. Most of existing active users should've received invitation by e-mail.
Ask Your Question
0

LNK2019 cuda::cvtColor and cuda::equalizeHist

asked 2018-12-07 04:59:50 -0500

Filippo9669 gravatar image

Hello! I'm trying to use cuda::cvtColor and cuda::equalizeHist but I get errors as follows:

Error LNK2019 unresolved external symbol "void __cdecl cv::cuda::cvtColor(class cv::debug_build_guard::_InputArray const &,class cv::debug_build_guard::_OutputArray const &,int,int,class cv::cuda::Stream &)" (?cvtColor@cuda@cv@@YAXAEBV_InputArray@debug_build_guard@2@AEBV_OutputArray@42@HHAEAVStream@12@@Z) referenced in function "class cv::Mat __cdecl edgedetect(class cv::Mat,double,double)" (?edgedetect@@YA?AVMat@cv@@V12@NN@Z) ConsoleApplication2

and likewise for equalizeHist. I guess I'm missing some libs or maybe headers, have you got any idea which ones?

Win10 x64, CUDA 10.0, OpenCV 4.0.0, MVS

edit retag flag offensive close merge delete

Comments

Please can you delete one of your duplicate post

LBerger gravatar imageLBerger ( 2018-12-07 05:11:02 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-12-07 05:15:18 -0500

berak gravatar image

updated 2018-12-07 05:16:43 -0500

you need to link opencv_cudaimgproc400d.lib for a DEBUG project

(you probably tried with the release version, without the trailing d)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-12-07 04:59:50 -0500

Seen: 386 times

Last updated: Dec 07 '18