上一页 1 2 3 4 5 6 7 ··· 68 下一页
摘要: 原理: https://www.cnblogs.com/nowgood/p/cannyedge.html #include #include #include using namespace cv; using namespace std; Mat src, dst,dst2,gray_src; char* INPUT_WIN = "input image"; char* OUT... 阅读全文
posted @ 2019-12-09 14:51 喵小喵~ 阅读(796) 评论(0) 推荐(0) 编辑
摘要: #include <opencv2/opencv.hpp> #include <iostream> #include <math.h> using namespace cv; using namespace std; Mat src, dst,dst2,gray_src; char* INPUT_WIN = "input image"; char* OUTPUT_WIN = "binary ima 阅读全文
posted @ 2019-12-09 14:11 喵小喵~ 阅读(1115) 评论(0) 推荐(0) 编辑
摘要: #include <opencv2/opencv.hpp> #include <iostream> #include <math.h> using namespace cv; using namespace std; Mat src, dst,dst2,gray_src; char* INPUT_WIN = "input image"; char* OUTPUT_WIN = "binary ima 阅读全文
posted @ 2019-12-09 11:48 喵小喵~ 阅读(367) 评论(0) 推荐(0) 编辑
摘要: #include <opencv2/opencv.hpp> #include <iostream> #include <math.h> using namespace cv; using namespace std; Mat src, dst,dst2,gray_src; char* INPUT_WIN = "input image"; char* OUTPUT_WIN = "binary ima 阅读全文
posted @ 2019-12-09 10:11 喵小喵~ 阅读(809) 评论(0) 推荐(0) 编辑
摘要: #include <opencv2/opencv.hpp> #include <iostream> #include <math.h> using namespace cv; using namespace std; Mat src, dst,dst2,gray_src; char* INPUT_WIN = "input image"; char* output_title = "binary i 阅读全文
posted @ 2019-12-07 20:27 喵小喵~ 阅读(235) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace cv; using namespace std; Mat src, dst,dst2; //膨胀腐蚀的应用:消除噪声 int main() { //原图 src = imread(".//pic//kate.png", IMREAD_UNCHANGED); char*... 阅读全文
posted @ 2019-12-07 17:36 喵小喵~ 阅读(1483) 评论(0) 推荐(0) 编辑
摘要: 效果图: 代码: 阅读全文
posted @ 2019-12-07 15:05 喵小喵~ 阅读(493) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace cv; using namespace std; Mat src, dst,dst2; //开操作:先腐蚀,再膨胀 //闭操作:先膨胀,再腐蚀 int main1() { //原图 src = imread(".//pic//1.png",IMREAD_UNCHANGED); ... 阅读全文
posted @ 2019-12-07 14:26 喵小喵~ 阅读(566) 评论(0) 推荐(0) 编辑
摘要: 先膨胀再腐蚀消除裂痕: 代码: 阅读全文
posted @ 2019-12-07 10:24 喵小喵~ 阅读(537) 评论(0) 推荐(0) 编辑
摘要: #include <opencv2/opencv.hpp> #include <iostream> #include <math.h> using namespace cv; using namespace std; const int g_nTrackbarMaxValue = 9; //定义轨迹条最大值 int g_nTrackbarValue; //定义轨迹条初始值 int g_nKerne 阅读全文
posted @ 2019-12-06 18:42 喵小喵~ 阅读(913) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 68 下一页