OpenCV中利用sobel算子进行边缘检测
#include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include <iostream> #include <cmath>using namespace cv;using namespace std;bool sobelEdge