随笔分类 -  OpenCV

学习记录与分享
摘要:1、Debug与Release 在Debug模式下运行出现下面问题: 改为Debug模式后运行正常如下: 2、using namespace std的使用 阅读全文
posted @ 2018-08-26 14:04 BreakofDawn 阅读(306) 评论(0) 推荐(0)
摘要:Visual Studio 2015中的常用调试技巧分享 https://www.cnblogs.com/chenxinblogs/p/5298032.html 如何用好vs2015的调试器 新手必看 https://blog.csdn.net/tobe_numberone/article/deta 阅读全文
posted @ 2018-08-25 16:14 BreakofDawn 阅读(279) 评论(0) 推荐(0)
摘要:由原来使用向量vector<mat> imageRGB改为使用数组Mat image[3] 其他参考:https://blog.csdn.net/liyuanbhu/article/details/49277171 阅读全文
posted @ 2018-08-19 20:24 BreakofDawn 阅读(152) 评论(0) 推荐(0)
摘要:push_back 是算法语言里面的一个 函数名。 C++ 中的vector头文件里面就有这个push_back函数,在vector类中作用为在vector尾部加入一个数据。string中也有这个函数,作用是字符串之后插入一个字符。 1 #include <iostream> 2 #include 阅读全文
posted @ 2018-08-19 17:26 BreakofDawn 阅读(2274) 评论(0) 推荐(0)
摘要:在图像处理方面,无论是加是减,乘除,都会超出一个像素灰度值的范围(0~255),saturate_cast函数的作用即是:当运算完之后,结果为负,则转为0,结果超出255,则为255。 https://blog.csdn.net/piaoxuezhong/article/details/605709 阅读全文
posted @ 2018-08-16 20:15 BreakofDawn 阅读(842) 评论(0) 推荐(0)
摘要:应用1:图像补运算:MatIterator_迭代器反色处理: 1 #include <opencv2/video/background_segm.hpp> 2 #include <iostream> 3 #include<core/core.hpp> 4 #include<highgui/highg 阅读全文
posted @ 2018-08-16 19:59 BreakofDawn 阅读(892) 评论(0) 推荐(0)
摘要:基于下面两个例子的理解: 示例一:4通道图像分割 1 #include<opencv2/opencv.hpp> 2 using namespace cv; 3 4 int main() 5 { 6 Mat bgra(500, 500, CV_8UC4, Scalar(255, 255, 0, 255 阅读全文
posted @ 2018-08-15 16:00 BreakofDawn 阅读(432) 评论(0) 推荐(0)
摘要:1 #include<opencv2/opencv.hpp> 2 #include<iostream> 3 4 using namespace std; 5 using namespace cv; 6 7 int main() 8 { 9 Mat mat1 = Mat(2, 2, CV_32FC1) 阅读全文
posted @ 2018-08-13 16:50 BreakofDawn 阅读(3283) 评论(0) 推荐(0)
摘要:链接:https://blog.csdn.net/guduruyu/article/details/68942211 阅读全文
posted @ 2018-08-08 16:20 BreakofDawn 阅读(148) 评论(0) 推荐(0)
摘要:链接:https://blog.csdn.net/guyuealian/article/details/70159660 阅读全文
posted @ 2018-08-08 16:08 BreakofDawn 阅读(1366) 评论(0) 推荐(0)
摘要:cv::Mat::at<float> 参考链接: https://blog.csdn.net/github_35160620/article/details/51708659 https://blog.csdn.net/guduruyu/article/details/60867547 阅读全文
posted @ 2018-08-06 14:25 BreakofDawn 阅读(649) 评论(0) 推荐(1)
摘要:基于之前安装的opencv3.4.1(参考之前文章《Ubuntu14.04安装OpenCV3.4.1》),按照如下2步骤: 1、去Clion官网下载clion并安装 2、配置cmakelist.txt文件 3、找个读取图片代码测试一下即可! 参考文章(感谢): Ubuntu/Linux 下配置Ope 阅读全文
posted @ 2018-05-09 15:06 BreakofDawn 阅读(395) 评论(0) 推荐(0)
摘要:1、去opencv官网下载对应版本opencv(我的opencv3.4.1),下载后得到opencv的zip压缩包(我:opencv3.4.1.zip)。 2、按照如下(opencv2.4.13替换成你装版本,我的opencv3.4.1)操作: 可以使按照上面教程的/usr/local。 感谢下面的 阅读全文
posted @ 2018-05-07 20:17 BreakofDawn 阅读(639) 评论(0) 推荐(0)