
opencv
Qgardener
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
图像的仿射变换
1、旋转(保持原图的尺寸大小) #include <iostream> #include <opencv2\core\core.hpp> #include <opencv2\highgui\highgui.hpp> #include <opencv2\imgproc\imgproc.hpp> using namespace std;using namespace cv;int原创 2017-07-01 12:10:17 · 743 阅读 · 0 评论 -
opencv——边缘检测
#include<iostream>#include<opencv2/imgproc/imgproc.hpp>#include<opencv2/highgui/highgui.hpp>using namespace cv;int main(){ Mat originalimage; originalimage = imread("1.jpg"); Mat grayim原创 2017-06-25 11:12:14 · 1121 阅读 · 0 评论 -
opencv——同一窗口显示同色彩图像
这里主函数要使用ROI函数和addWeigth函数来实现#include<iostream>#include<opencv2/highgui/highgui.hpp>#include<opencv2/imgproc/imgproc.hpp>using namespace cv;using namespace std;int main(){ Mat img1 = imread("1.原创 2017-06-25 15:45:48 · 634 阅读 · 0 评论 -
文章标题 opencv——图像的滤波
opencv——图像滤波#include<iostream>#include<opencv2/imgproc/imgproc.hpp>#include<opencv2/highgui/highgui.hpp>#include<opencv2/core/core.hpp>using namespace cv;using namespace std;int main(){ Mat原创 2017-06-25 10:02:58 · 581 阅读 · 0 评论 -
文章标题 opencv中视频的读取和显示以及色彩的转换
本文基于VS2013和opencv所写这里写代码片#include<iostream>#include"opencv2/imgproc/imgproc.hpp"#include"opencv2/highgui/highgui.hpp"using namespace cv;using namespace std;/*int main(){ VideoCapture capture原创 2017-06-23 11:10:13 · 661 阅读 · 0 评论 -
文章标题 opencv中图像的颜色转变
主要是C++中借口Mat类与C有所不同这里写代码片#include<iostream>//#include<cv.h>#include"opencv2/imgproc/imgproc.hpp"#include"opencv2/highgui/highgui.hpp"using namespace cv;int main(){ Mat original; original原创 2017-06-23 11:26:28 · 637 阅读 · 0 评论 -
opencv—提取图像RGB各个通道分量
#include<iostream>#include<opencv2/opencv.hpp>using namespace cv;using namespace std;int main(){ Mat orig; orig = imread("1.jpg"); if (orig.empty()) cout << "读入失败" << endl; i原创 2017-07-02 13:12:19 · 12115 阅读 · 0 评论 -
SURF特征点描述
#include<iostream>#include<opencv2/opencv.hpp>#include<opencv2/core/core.hpp>#include "opencv2/features2d/features2d.hpp" #include <opencv2/nonfree/nonfree.hpp> #include<opencv2/legacy/legacy.hpp原创 2017-07-02 12:13:18 · 902 阅读 · 0 评论 -
图像的膨胀与腐蚀以及开闭运算
#include<iostream>#include<opencv2/opencv.hpp>using namespace cv;int main(){ Mat originalimage; originalimage = imread("1.jpg"); Mat erodeimage,dilateimage; Mat element = getStructur原创 2017-07-01 19:53:52 · 1102 阅读 · 0 评论 -
opencv——同一窗口显示多幅图像
#include<iostream>#include<opencv2/imgproc/imgproc.hpp>#include<opencv2/highgui/highgui.hpp>using namespace cv;using namespace std;void imshowMany(const string winName, const vector<Mat>imgs);//定义原创 2017-06-25 17:36:01 · 1370 阅读 · 0 评论