参数不太好选,API比较难用
代码
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace cv;
using namespace std;
//测试使用
//int Max_Threshold = 300;
//const int Max_Value = 600;
//int Low_Threshold = 100;
//const int Low_Value = 300;
cv::Mat src_gray,src,Terminal;
//测试使用
//void MyCanny(int,void*)
//{
// Mat tmp;
// cv::medianBlur(src_gray,tmp,5);
// Canny(tmp,tmp,Low_Threshold,Max_Threshold,3);
// imshow("Canny", tmp);
// Terminal = tmp.clone();
//}
int main(void)
{
src = imread("../res/coins.png"