C++ LNK2019 cuda::cvtColor和cuda::equalizeHist

C++ LNK2019 cuda::cvtColor和cuda::equalizeHist,c++,opencv,C++,Opencv,我试图使用cuda::cvtColor和cuda::equalizeHist但我得到如下错误: 错误LNK2019未解析的外部符号“void\u cdecl cv::cuda::cvtColor(类cv::debug\u build\u guard::\u InputArray const&,类cv::debug\u build\u guard::\u OutputArray const&,int,int,class cv::cuda::Stream&”)(?cvtColor@cuda@cv@@

我试图使用
cuda::cvtColor
cuda::equalizeHist
但我得到如下错误:

错误LNK2019未解析的外部符号“void\u cdecl cv::cuda::cvtColor(类cv::debug\u build\u guard::\u InputArray const&,类cv::debug\u build\u guard::\u OutputArray const&,int,int,class cv::cuda::Stream&”)(?cvtColor@cuda@cv@@YAXAEBV_InputArray@debug_build_guard@2@AEBV_OutputArray@42@HHAEAVStream@12@@Z)在函数中引用“类别cv::Mat\uU cdecl edgedetect(类别cv::Mat,double,double)”(?edgedetect@@YA?AVMat@cv@@V12@NN@Z) 控制台应用程序2

同样,对于
equalizeHist
,我想我缺少了一些lib或header,你知道哪些吗


Win10 x64、CUDA 10.0、OpenCV 4.0.0、MVS

检查链接器是否已正确链接CUDA。CUDA::cvtColor和CUDA::equalizeHist位于CUDA imgproc下。

可能的副本请显示编译和链接命令。另请参阅。这是我正在寻找的。谢谢!