摘要: #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) 编辑