摘要: 格式 含义 针对类型%d 两个字节变量 int%bd 单字节变量 char%ld 四字节变量 long int 阅读全文
posted @ 2019-02-27 18:39 hehe_2014 阅读(584) 评论(0) 推荐(0) 编辑
摘要: #include using namespace cv; #define WINDOW_NAME "【程序窗口】" //为窗口标题定义的宏 Rect g_rectangle; bool g_bDrawingBox = false;//是否进行绘制 RNG g_rng(12345); void on_MouseHandle(int event, int x, int y... 阅读全文
posted @ 2019-02-27 18:22 hehe_2014 阅读(120) 评论(0) 推荐(0) 编辑
摘要: CV_EXPORTS int createTrackbar( const string& trackbarname, // 轨迹条名称 const string& winname, // 窗体名称 in... 阅读全文
posted @ 2019-02-27 18:21 hehe_2014 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 头文件和命名空间 Mat类 图像的载入与显示 图像的载入 图像的显示 关于InputArray类型 创建窗口 输出图像到文件 阅读全文
posted @ 2019-02-27 18:20 hehe_2014 阅读(612) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace cv; //-----------------------------------【main( )函数】-------------------------------------------- // 描述:控制台应用程序的入口函数,我们的程序从这里开始 //---------------------------... 阅读全文
posted @ 2019-02-27 18:15 hehe_2014 阅读(188) 评论(0) 推荐(0) 编辑
摘要: #include using namespace cv; //-----------------------------------【main( )函数】-------------------------------------------- // 描述:控制台应用程序的入口函数,我们的程序从这里开始 //--------------------------------... 阅读全文
posted @ 2019-02-27 18:15 hehe_2014 阅读(86) 评论(0) 推荐(0) 编辑
摘要: #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" using namespace cv; //-----------------------------------【main( )函数】-------------------------------------------- // ... 阅读全文
posted @ 2019-02-27 18:12 hehe_2014 阅读(136) 评论(0) 推荐(0) 编辑
摘要: // 描述:包含程序所依赖的头文件 //---------------------------------------------------------------------------------------------- #include #include //-----------------------------------【命名空间声明部分】--------... 阅读全文
posted @ 2019-02-27 18:11 hehe_2014 阅读(125) 评论(0) 推荐(0) 编辑
摘要: int main() { // 【1】读入一张图片 Mat img = imread("1.jpg"); // 【2】在窗口中显示载入的图片 imshow("【载入的图片】",img); // 【3】等待6000 ms后窗口自动关闭 waitKey(6000); } 阅读全文
posted @ 2019-02-27 18:09 hehe_2014 阅读(344) 评论(0) 推荐(0) 编辑
摘要: linux 下编译一个cpp程序 执行 g++ my_code.cpp -o my_code 阅读全文
posted @ 2019-02-27 17:58 hehe_2014 阅读(333) 评论(0) 推荐(0) 编辑