摘要:
#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 阅读全文
摘要:
#include #include #include using namespace cv; using namespace std; Mat src, dst,dst2; //膨胀腐蚀的应用:消除噪声 int main() { //原图 src = imread(".//pic//kate.png", IMREAD_UNCHANGED); char*... 阅读全文
摘要:
效果图: 代码: 阅读全文
摘要:
#include #include #include using namespace cv; using namespace std; Mat src, dst,dst2; //开操作:先腐蚀,再膨胀 //闭操作:先膨胀,再腐蚀 int main1() { //原图 src = imread(".//pic//1.png",IMREAD_UNCHANGED); ... 阅读全文
摘要:
先膨胀再腐蚀消除裂痕: 代码: 阅读全文