随笔分类 -  OPENCV

(转)直方图反向投影
摘要:OpenCV统计应用-直方图反向投影影像处理的统计直方图,可以知道一张图片在该色彩空间的数据分布状况,而这边,就要介绍到直方图反向投影的函式,直方图反向投影,也就是将数据分布的状况依照Look-up table的方式对应回去,实际上,这个函式是跟前面介绍到的cvLUT()是一样的,只不过,差别是差异在cvLUT()的第三个自变量改变成CvHistogram数据结构的输入,直方图反向投影,cvCalcBackProject()的第一个自变量是输入单信道IplImage数据结构,第二个自变量是输出单信道IplImage反向投影图形数据结构,第三个自变量是选定要被反向投影的CvHistogram直方 阅读全文

posted @ 2011-10-14 16:01 wqj1212 阅读(646) 评论(0) 推荐(0) 编辑

OPENCV 中的图像旋转与缩放
摘要:在OPENCV中实现图像旋转,可以采用图像的仿射变换形式,下面给出一个样例程序,说明如何实现图像的旋转与缩放。#include "cv.h"#include "highgui.h"#include "math.h"int main( int argc, char** argv ){IplImage* src=0;IplImage* dst = 0; /* the first command li... 阅读全文

posted @ 2009-06-26 21:50 wqj1212 阅读(1796) 评论(1) 推荐(0) 编辑

角点检测
摘要:========== #include #include "cv.h" #include "highgui.h" #define max_corners 100 int main( int argc, char** argv ) { int cornerCount=max_corners; CvPoint2D32f corners[max_corners]; double... 阅读全文

posted @ 2008-10-07 16:18 wqj1212 阅读(734) 评论(0) 推荐(0) 编辑

CvScalar
摘要:Element-value of one pixel. OpenCV supports the image of 4-channels in the maximum. Therefore, CvScalar has 4-values. C structure is here, very simple. typdef struct CvScalar{ double val[4]; }CvS... 阅读全文

posted @ 2008-04-11 10:28 wqj1212 阅读(974) 评论(0) 推荐(0) 编辑

运动中人,车识别及追踪
摘要:OPENCV里的帖子讨论 http://www.opencv.org.cn/forum/viewtopic.php?f=1&t=1495 阅读全文

posted @ 2008-01-25 15:27 wqj1212 阅读(1088) 评论(0) 推荐(0) 编辑

directshow采集图像转换成OPENCV
摘要:#include "stdafx.h" #include #include #include "cxcore.h" #include #include "math.h" #include #include #include "ARFrameGrabber.h" //#include void main(int argc, char* argv[]) { I... 阅读全文

posted @ 2008-01-25 11:02 wqj1212 阅读(1659) 评论(0) 推荐(0) 编辑

OPENCV中子图像的获取拷贝以及源代码
摘要:/*F/////////////////////////////////////////////////////////////////////////////////////// 名称: cvGetSubImage 功能: 求输入图像的子图像 算法: 参数: image - 输入图像 roi - 子图... 阅读全文

posted @ 2008-01-05 17:33 wqj1212 阅读(2301) 评论(0) 推荐(0) 编辑

七个不变特征识别
摘要:writen by wqj1212@yahoo.com.cn double * CRecognise::recogniseInvariantMoment(IplImage *src) { float cx=0.0; float cy=0.0; float Mpq=0.0; int width; int height; double q1=0.... 阅读全文

posted @ 2007-12-21 19:31 wqj1212 阅读(742) 评论(0) 推荐(0) 编辑

NMI特征识别
摘要:该特征具有 放大、缩小、旋转抗灰度巨变 不变性。能够达到实时性要求 writen by wqj1212@yahoo.com.cn double CRecognise::recogniseNMI(IplImage *src) { IplImage *src1; int width; int height; width=src->width; height=... 阅读全文

posted @ 2007-12-21 19:29 wqj1212 阅读(797) 评论(0) 推荐(0) 编辑

bmp和opencv格式转换
摘要:IplImage * BmpTOIpl(int width,int height,unsigned char *pBuffer) { IPlImage *image =cvCreateImage(cvSize(width,height),8,1); image->imageData=pBuffer; return image; } CDibPtr IplToDib(I... 阅读全文

posted @ 2007-12-19 21:59 wqj1212 阅读(2827) 评论(2) 推荐(1) 编辑

MIL与opencv的转化
摘要:/**//* This is a standalone program. Pass an image name as a first parameter of the program. Switch between standard and probabilistic Hough transform by changing "#if 1" to "#if 0" and back */ #in... 阅读全文

posted @ 2007-12-17 20:02 wqj1212 阅读(2354) 评论(2) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示