学习openCV
欢乐的工科小硕
这个作者很懒,什么都没留下…
展开
-
【学习opencv】IplImage平滑滤波 cvSmooth
显示时用到的函数及头文件:#include "stdafx.h"#include "opencv2/opencv.hpp"#include #include #include #include #include #include using namespace std;using namespace cv;//对image进行平滑处理void example2_4( I原创 2014-03-06 15:19:17 · 4071 阅读 · 0 评论 -
【学习opencv】 视频载入与显示
用到的头文件:#include "highgui.h"显示图片时用到的函数:支持的图片格式包括://注意把视频文件放在工程的debug目录下,不是大的debug下 const char *filePath="10.avi"; cvNamedWindow( "Example2", CV_WINDOW_AUTOSIZE ); CvCapture* captu原创 2014-03-06 14:52:14 · 969 阅读 · 0 评论 -
【学习opencv】IplImage载入与显示
显示图片时用到的函数:原创 2014-03-06 13:35:06 · 4933 阅读 · 0 评论 -
【学习opencv】对图像缩放并进行边缘检测
首先对图像进行缩放:用到的函数:cvPyrDown();下面函数返回缩放后的图像IplImage* doPyrDown(IplImage* in,int filter = IPL_GAUSSIAN_5x5){ assert( in->width%2 == 0 && in->height%2 == 0 ); IplImage* out = cvCreateImage( cvSiz原创 2014-03-10 10:36:11 · 1799 阅读 · 0 评论