![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
opencv
Alinxxl
成为自己想成为的人
展开
-
cvSetImageROI 感兴趣区域选择
基于给定的矩形设置图像的ROI 感兴趣区域格式: void cvSetImageROI(IplImage* image,CvRect rect);参数:image :图像头,待处理图像rect :ROI 矩形例子:如果ROI为NULL并且参数rect的值不等于整个图像,则ROI被分配。大多数OpenCV函数都支持ROI,转载 2016-06-23 22:50:26 · 534 阅读 · 0 评论 -
opencv 基础操作总结
//#include//using namespace cv;#include #include #include #include "opencv2/video.hpp"#include "opencv2/imgcodecs.hpp"#include "opencv2/highgui.hpp"using namespace cv;using namespace std;原创 2017-10-30 15:04:21 · 502 阅读 · 0 评论 -
Ubuntu 12.04下安装opencv3.0遇到的问题
1、make时出现关于ffmpeg错误 In file included from /home/vonzhou/Downloads/opencv-3.0.0-rc1/modules/videoio/src/cap_ffmpeg_impl.hpp:65:0, from /home/vonzhou/Downloads/opencv-3.0.0-rc1/modul转载 2017-10-10 10:43:23 · 830 阅读 · 0 评论 -
CvScalar cvGet2D
返回特殊的数组元素CvScalar cvGet2D( const CvArr* arr, int idx0, int idx1 );转载 2016-06-23 17:21:56 · 656 阅读 · 0 评论 -
cvErode腐蚀 cvDilate膨胀
作用: Erode腐蚀,Dilate膨胀,这两个形态学函数总是成对出现, 前者可以消除较小独点如噪音,后者可以使不连通的图像合并成块。 函数形式: void cvErode( const CvArr*src, CvArr* dst, IplConvKernel* element=NULL, int iterations=1 )转载 2016-06-16 16:19:36 · 542 阅读 · 0 评论 -
cvHoughLines2--- Hough变换
Hough变换在二值图像中寻找直线> 函数原型:CvSeq* cvHonghLines2(CvArr* image,void* line_storage,int mehtod,double rho,double theta,int threshold,double param1 =0,double param2 =0);参数说明: 1、image转载 2016-06-15 18:54:31 · 503 阅读 · 0 评论 -
cvWriteFrame 写入一帧到一个视频文件中
int cvWriteFrame( CvVideoWriter* writer, const IplImage* image );writer 视频写入器结构。image 被写入的帧。函数cvWriteFrame写入/附加到视频文件一帧。返回:成功返回1,不成功返回0。转载 2016-06-13 21:24:40 · 2885 阅读 · 0 评论 -
LogPolar 把图像映射到极指数空间
void cvLogPolar( const CvArr* src, CvArr* dst, CvPoint2D32f center, double M, int flags=CV_INTER_LINEAR+CV_WARP_FILL_OUTL转载 2016-06-13 21:18:30 · 1109 阅读 · 0 评论 -
cvGetCaptureProperty 获取视频流的各种属性 用法
获取视频流的各种属性>double cvGetCaptureProperty( CvCapture* capture,int property_id ); capture 视频获取结构。 property_id 属性标识。可以是下面之一:enum{// modes of the转载 2016-06-13 21:15:12 · 4119 阅读 · 0 评论 -
cvCreateVideoWriter 创建视频文件写入器 用法
创建视频文件写入器> typedef struct CvVideoWriter CvVideoWriter; CvVideoWriter* cvCreateVideoWriter ( const char*filename, int fourcc, double fps, CvSizeframe_size, int is_color=1 ); 1、file转载 2016-06-13 21:10:56 · 1470 阅读 · 0 评论 -
opencv显示图像
#includeusing namespace cv;int main(){ Mat img = imread("D://1.jpg"); imshow("载入图像", img); waitKey(0);}原创 2017-10-24 18:36:04 · 255 阅读 · 0 评论