Opencv-C++成长之路
koko_TT
Show me the code.
展开
-
Opencv C++成长之路(一):Mac下xcode配置Opencv环境
版本选择由于目前已经更新了opencv - 4 所以后面的学习建立在这个版本上。环境配置由于目前使用Mac系统,加上特别喜欢用xcode写一些小玩意儿,所以这里附上xcode的配置。安装Homebrew/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/ins...原创 2019-03-21 17:33:11 · 485 阅读 · 0 评论 -
Opencv C++成长之路(十):图像腐蚀
腐蚀结果原图像腐蚀处理后图像Show me the code#include <opencv2/core.hpp>#include <opencv2/highgui/highgui.hpp>#include <opencv2/imgproc/imgproc.hpp>#include <iostream>#include <s...原创 2019-03-29 11:25:44 · 377 阅读 · 0 评论 -
Opencv C++成长之路(九):Canny边缘提取
边缘提取结果原图像Canny处理结果说明在进行Canny处理时,如果要获得图像中大致的轮廓,则建议先对原图像进行双边滤波处理,双边滤波程度越深,Canny越倾向于提取更大致的轮廓。具体双边滤波的方法与效果参考Opencv C++成长之路(八):高斯双边滤波 (图像处理磨皮)。Show me the code#include <iostream>#include &l...原创 2019-03-26 17:43:02 · 1635 阅读 · 0 评论 -
Opencv C++成长之路(九):均值滤波
滤波效果原图像均值滤波结果Show me the code#include <iostream>#include <string>#include <opencv2/imgproc/imgproc.hpp>#include <opencv2/highgui.hpp>using namespace std;int main()...原创 2019-03-26 17:21:07 · 541 阅读 · 0 评论 -
Opencv C++成长之路(八):高斯双边滤波 (图像处理磨皮)
滤波结果原图像高斯双边滤波结果与高斯滤波的区别两者的区别在于,高斯滤波在滤波时会将图像中各个颜色区域的边缘同区域本身一起模糊掉,而高斯双边滤波则是对各个区域的交界边缘有所保留。对于高斯滤波来说有两个参数window_size,即滤波窗口越大,图像越模糊sigma越大,图像越模糊而高斯双边滤波则有三个参数window_size窗口越大,滤波程度越大sigmaCo...原创 2019-03-26 17:07:42 · 1916 阅读 · 0 评论 -
Opencv C++成长之路(七):RGB转换灰度图像
转换结果原图像灰度图像Show me the code#include <iostream>#include <string>#include <opencv2/imgproc/imgproc.hpp>#include <opencv2/highgui.hpp>using namespace std;int main() {...原创 2019-03-22 16:15:49 · 8495 阅读 · 1 评论 -
Opencv C++成长之路(六):高斯差分滤波
高斯差分滤波结果原图像高斯差分滤波结果Show me the code#include <iostream>#include <string>#include <opencv2/imgproc/imgproc.hpp>#include <opencv2/highgui.hpp>using namespace std;int ...原创 2019-03-22 16:05:01 · 3413 阅读 · 1 评论 -
Opencv C++成长之路(五):高斯滤波
高斯滤波结果原图像高斯滤波结果Show me the code#include <iostream>#include <opencv2/highgui.hpp>#include <opencv2/imgproc/imgproc.hpp>#include <string>#include <cmath>using n...原创 2019-03-22 15:38:11 · 622 阅读 · 0 评论 -
Opencv C++成长之路(四):中值滤波
中值滤波结果原图像中值滤波结果Show me the code#include <iostream>#include <opencv2/highgui.hpp>#include <opencv2/imgproc/imgproc.hpp>#include <string>#include <cmath>using n...原创 2019-03-22 15:29:21 · 1516 阅读 · 1 评论 -
Opencv C++成长之路(三):图像的缩放
图像的缩放#include <iostream>#include <opencv2/highgui.hpp>#include <opencv2/imgproc/imgproc.hpp>#include <string>#include <cmath>using namespace std;int main() { ...原创 2019-03-22 15:13:18 · 1497 阅读 · 0 评论 -
Opencv C++成长之路(二):图像的读取与显示
Show me the code#include <iostream>#include <string>#include <opencv2/highgui.hpp>using namespace std;int main() { // 文件路径 const string filePath = "xxx.jpg"; ...原创 2019-03-21 17:42:52 · 525 阅读 · 0 评论 -
Opencv C++成长之路(十一):图像膨胀
膨胀结果原图像膨胀处理后图像Show me the code#include <opencv2/core.hpp>#include <opencv2/highgui/highgui.hpp>#include <opencv2/imgproc/imgproc.hpp>#include <iostream>#include <s...原创 2019-03-29 11:39:01 · 426 阅读 · 0 评论