摘要: #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) 编辑
摘要: #include #include #include using namespace cv; using namespace std; //线 void MyLines(Mat &bgImage) { Point p1 = Point(20, 30); Point p2; p2.x = 300; p2.y = 300; Scalar color =... 阅读全文
posted @ 2019-12-06 15:48 喵小喵~ 阅读(296) 评论(0) 推荐(0) 编辑
摘要: #include <opencv2/opencv.hpp> #include <iostream> #include <math.h> using namespace cv; using namespace std; int main() { Mat src1,dst,dst2; //原图 src1 = imread(".//pic//kate.png",IMREAD_UNCHANGED); if 阅读全文
posted @ 2019-12-06 14:32 喵小喵~ 阅读(358) 评论(0) 推荐(0) 编辑
摘要: #include <opencv2/opencv.hpp> #include <iostream> #include <math.h> using namespace cv; using namespace std; int main() { Mat src1,src2,dst; //原图 src1 = imread(".//pic//kate.png",IMREAD_UNCHANGED); sr 阅读全文
posted @ 2019-12-06 14:01 喵小喵~ 阅读(117) 评论(0) 推荐(0) 编辑
摘要: #include <opencv2/opencv.hpp> #include <iostream> #include <math.h> using namespace cv; using namespace std; int main() { Mat src; //原图 src = imread(".//pic//test.jpg",IMREAD_UNCHANGED); if (src.empty 阅读全文
posted @ 2019-12-06 13:31 喵小喵~ 阅读(1049) 评论(0) 推荐(0) 编辑
摘要: #include <opencv2/opencv.hpp> #include <iostream> #include <math.h> using namespace cv; using namespace std; int main() { Mat src; //原图 src = imread(".//pic//test.jpg",IMREAD_UNCHANGED); if (src.empty 阅读全文
posted @ 2019-12-06 12:02 喵小喵~ 阅读(981) 评论(0) 推荐(0) 编辑
摘要: 代码: 阅读全文
posted @ 2019-12-06 11:07 喵小喵~ 阅读(1852) 评论(0) 推荐(0) 编辑