Need help to set the correct environment to use OpenCV GPU functions in Cuda

I would like to use OpenCV functions using my Nvidia GPU by using Cuda in Visual Studio 2019. Cuda, alone, is running correctly on my computer, as well as any OpenCV functions when used without Cuda


.

But each time, I want to access any OpenCV function via Cuda such as cv::cuda::threshold or cv::cuda::CannyEdgeDetctor or any other functions; it gives me an error; regardless of whether I include the right *.hpp file.

I am attaching a screenshot of my computer.

For your information, this is how I installed OpenCV:

That is exactly what I did and used the same link. After installing OpenCV, my program does not recognize the Cuda GPU functions; this is shown in the attached picture screenshot; although

  1. OpenCV is well installed and works fine when not used by Cuda.List item
  2. Cuda is well installed and works fine.

= But calling GPU Opencv functions do not work as such as cv::cuda::threshold or cv::cuda::CannyEdgeDetctor and any other functions; it gives me an error; regardless of whether I include the right *.hpp file or not

Hi @shervin.taghavi
This issue looks like Nsigth Visual Studio Edition issue. Moving to corresponding forum branch.