摘要: 作者:gnuhpc 出处:http://www.cnblogs.com/gnuhpc/ #include <stdlib.h>#include <stdio.h>#include <math.h>#include "cv.h"#include "highgui.h"int main(int argc,char *argv[]){ IplImage *img = 0; int h... 阅读全文
posted @ 2012-07-02 22:56 gnuhpc 阅读(4907) 评论(0) 推荐(0) 编辑
摘要: 作者:gnuhpc 出处:http://www.cnblogs.com/gnuhpc/ #include "cv.h"#include "highgui.h"#include <stdio.h>void PrintMat(CvMat *A);//显示矩阵void GenRandn(CvMat *arr,int seed);//生成正态分布的随机矩阵void GenRand(CvMat *a... 阅读全文
posted @ 2012-07-02 22:53 gnuhpc 阅读(3765) 评论(0) 推荐(0) 编辑
摘要: 作者:gnuhpc 出处:http://www.cnblogs.com/gnuhpc/ /************************************************** * 背景建模,运动物体检测 * **************************************************//************************... 阅读全文
posted @ 2012-07-02 22:50 gnuhpc 阅读(4442) 评论(0) 推荐(0) 编辑
摘要: 作者:gnuhpc 出处:http://www.cnblogs.com/gnuhpc/ #include <cvcam.h>#include <cv.h>#include <highgui.h>#include <stdio.h>#include <windows.h>int main(void){ int ncams =cvcamGetCamerasCount(); HWND... 阅读全文
posted @ 2012-07-02 22:47 gnuhpc 阅读(4056) 评论(1) 推荐(0) 编辑
摘要: 作者:gnuhpc 出处:http://www.cnblogs.com/gnuhpc/ #include "highgui.h"#include "cv.h"#include "cxcore.h"#include <iostream>#include <iomanip>using namespace std;int main(void){ CvMat *mat=cvCreate... 阅读全文
posted @ 2012-07-02 22:45 gnuhpc 阅读(2438) 评论(0) 推荐(0) 编辑
摘要: 作者:gnuhpc 出处:http://www.cnblogs.com/gnuhpc/ #include "highgui.h"#include "cv.h"#include <iostream>#include <iomanip>using namespace std;int main(void){ int i=0; int mode = CV_RETR_CCOMP;//设置... 阅读全文
posted @ 2012-07-02 22:43 gnuhpc 阅读(15899) 评论(1) 推荐(4) 编辑