I am using opencv 3.1.0, visual studio 2013 and cuda 6.5 I wrote a simple code (got it from original tutorial) which includes gpu namespaces i changed them to cv::cuda since opencv 3.0 doesn't support it anymore. but the code still doesn't work.
Here is the code
#include <opencv2/opencv.hpp>
#include <opencv2/gpu/gpu.hpp>
using namespace cv;
int main() {
Mat src = imread(“car1080.jpg”, 0);
if (!src.data) exit(1);
//gpu::GpuMat d_src(src);
cv::cuda::GpuMat d_src(src);
//gpu::GpuMat d_dst;
cv::cuda::GpuMat d_dst;
//gpu::bilateralFilter(d_src, d_dst, -1, 50, 7);
cv::cuda::bilateralFilter(d_src, d_dst, -1, 50, 7);
//gpu::Canny(d_dst, d_dst, 35, 200, 3);
cv::Canny(d_dst, d_dst, 35, 200, 3);
Mat dst(d_dst);
imwrite(“out.png”, dst);
return 0;
}
As I searched, rebuilding opencv using cmake with additional options can be a solution to that problem. However, they are not so sure. Any help?