#include <opencv2/opencv.hpp>#include <opencv2/imgproc/imgproc.hpp>#include <opencv2/highgui/highgui.hpp>using namespace cv;#define WINDOW_NAME "line ...
分类:
其他好文 时间:
2017-09-08 13:33:08
阅读次数:
212
#include <opencv2/opencv.hpp>#include <opencv2/imgproc/imgproc.hpp>#include <opencv2/highgui/highgui.hpp>using namespace cv;#if 0//腐蚀int main() { Mat ...
分类:
其他好文 时间:
2017-09-06 19:52:54
阅读次数:
326
row(n)为图像第n行中的像素值,rows无参数,为图像的行数(即图像的高度) 代码: #include<iostream>#include<opencv2/core/core.hpp>#include<opencv2/highgui/highgui.hpp>using namespace std ...
分类:
其他好文 时间:
2017-09-05 17:53:25
阅读次数:
331
#include <cv.h> #include <highgui.h> #include <windows.h> // 获取直方图 // 1. pImageData 图像数据 // 2. nWidth 图像宽度 // 3. nHeight 图像高度 // 4. nWidthStep 图像行大小 / ...
分类:
其他好文 时间:
2017-08-11 23:00:52
阅读次数:
233
C++读写文件 #include <opencv/cv.h>#include <fstream>#include <iostream>#include <string>#include <opencv2/core/core.hpp>#include <opencv2/highgui/highgui. ...
分类:
其他好文 时间:
2017-08-01 12:37:05
阅读次数:
125
1.OpenCV包含的模块 cv – 核心函数库 cvaux – 辅助函数库 cxcore – 数据结构与线性代数库 highgui – GUI函数库 ml – 机器学习函数库 2.常用头文件: #include <cv.h> #include <cvaux.h> #include <highgui ...
分类:
其他好文 时间:
2017-07-27 14:30:31
阅读次数:
260
在树梅派上运行在windows上正确的程序, 报错: 解决方法: 方法一: 安装v4l2ucp, v4l-utils 和 libv4l-dev. 对我来说没用。 方法二: 在视频imshow图像前,增加判断语句 然后, 只报错第一行, 但是程序可以正常运行。 ...
分类:
其他好文 时间:
2017-07-08 22:21:10
阅读次数:
606
1- http://blog.csdn.net/dcrmg/article/details/52578732 2- #include "highgui/highgui.hpp" #include "opencv2/nonfree/nonfree.hpp" #include "opencv2/lega ...
分类:
其他好文 时间:
2017-06-28 23:05:44
阅读次数:
158
Qt 平台,双边滤波原理代码例如以下: #include <QCoreApplication> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgp ...
分类:
其他好文 时间:
2017-06-03 21:47:58
阅读次数:
252
#ifndef PS_ALGORITHM_H_INCLUDED #define PS_ALGORITHM_H_INCLUDED #include <iostream> #include <string> #include "cv.h" #include "highgui.h" #include "c ...
分类:
其他好文 时间:
2017-05-22 13:20:46
阅读次数:
144