2014年2月22日

摘要: /* 程序名:drawing..c功能:展示OpenCV的图像绘制功能*/#include "cv.h"#include "highgui.h"#include #include #define NUMBER 100#define DELAY 5char wndname[] = "Drawing Demo";CvScalar random_color(CvRNG* rng){ int icolor = cvRandInt(rng); return CV_RGB(icolor&255, (icolor>>8)& 阅读全文

posted @ 2014-02-22 22:09 sylar少侠 阅读(172) 评论(0) 推荐(0) 编辑

摘要: // 载入图像 img=cvLoadImage("lena.jpg",-1); if(!img) { printf("Could not load image file: %s\n",argv[1]); exit(0); } // 获取图像信息 height = img->height; width = img->width; step = img->widthStep; channels = img->nChannels; data = (uchar *)img->image... 阅读全文

posted @ 2014-02-22 20:08 sylar少侠 阅读(396) 评论(0) 推荐(0) 编辑


Copyright © 2024 sylar少侠
Powered by .NET 8.0 on Kubernetes