Applying Sobel Edge Detection with CUDA and OpenCV on a grayscale jpg image
问题 This question has already been asked before, but the asker didn't provide enough information and left unanswered and I am curious about the program. Original Question Link I'm trying to do a sobel edge detection using both opencv and cuda library, the sobel kernel for X direction is -1 0 1 -2 0 2 -1 0 1 I have 3 files in my project main.cpp CudaKernel.cu CudaKernel.h main.cpp #include <stdlib.h> #include <iostream> #include <string.h> #include <Windows.h> #include <opencv2\core\core.hpp>