2013年3月5日

摘要: 1.直线 1 #include <cv.h> 2 #include <highgui.h> 3 4 int main() 5 { 6 IplImage *line = cvLoadImage("I:\\资料\\opencv相关资料\\OpenCV教程\\图像与视频\\airplane.png"); 7 CvPoint point1 = cvPoint(100,100); 8 CvPoint point2 = cvPoint(200,200); 9 //float vals[]={};10 CvScalar color = cvScalar(0,0,0 阅读全文
posted @ 2013-03-05 15:41 0fengfan0 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 1.IplImage数据结构 typedef struct _IplImage{ int nSize; /* sizeof(IplImage) */ int ID; /* version (=0)*/ int nChannels; /* Most of OpenCV functions support 1,2,3 or 4 channels */ int alphaChannel; /* Ignored by OpenCV */ int depth; /* Pixel depth in bits: IPL_DEPTH_8U, IPL_DEPTH_8S, IPL_DEPTH_16S, IPL_D 阅读全文
posted @ 2013-03-05 15:28 0fengfan0 阅读(2216) 评论(0) 推荐(0) 编辑

导航