码迷,mamicode.com
首页 >  
搜索关键字:iplimage    ( 261个结果
常用数据结构:IplImage
typedef struct_IplImage{ int nSize; //IplImage大小 int ID; //版本(=0) int nChannels; //大多数OPENCV函数支持1、2、3或4个通道 int alphaChannel; //被open...
分类:其他好文   时间:2014-09-30 00:32:41    阅读次数:225
大津法阈值法代码
int otsu(IplImage *image){ assert(NULL != image); int width = image->width; int height = image->height; int x=0,y=0; int pixelCount[256]; float pixelP...
分类:其他好文   时间:2014-09-28 03:00:00    阅读次数:205
OpenCV 中结构体IplImage 成员width widthStep使用注意事项
OpenCV 中结构体IplImage 成员width,widthStep使用注意事项                width 是指的图片宽度是多少个像素,而这里widthStep是指的图片中的每一行占用多少个字节. 而且,widthStep会有字节对齐.               当需要对每个像素进行操作的时候,这里最好用widthStep做行递增变换。...
分类:其他好文   时间:2014-09-25 02:29:48    阅读次数:243
YUV转为IplImage格式(I420和YV12)(转)
一、YUV简介 一般来说,直接采集到的视频数据是RGB24的格式,RGB24一帧的大小size=width×heigth×3 Byte,RGB32的size=width×heigth×4 Byte,如果是I420(即YUV标准格式4:2:0)的数据量是 size=width×heigth×1.5 B...
分类:其他好文   时间:2014-09-22 20:47:43    阅读次数:419
IplImage 结构解读
IplImage 结构解读:typedef struct _IplImage{int nSize; /* IplImage大小,等于width*height */int ID; /* 版本 (=0)*/int nChannels; ...
分类:其他好文   时间:2014-09-22 15:51:42    阅读次数:279
opencv学习--透视变化
透视变换和仿射变换具有很大的相同特性,前面提到了放射变化,这里再次把它拿出和透视变换进行比较 1 #include"cv.h" 2 #include"highgui.h" 3 using namespace cv; 4 void WarpPerspective(IplImage *img); 5 v...
分类:其他好文   时间:2014-09-21 13:50:20    阅读次数:261
学习opencv-------函数使用二(图像变换)
1 #include"cv.h" 2 #include"highgui.h" 3 using namespace cv; 4 void CVFILTER2D(IplImage * img, IplImage *dst); 5 void CVCOPYMAKEBORDER(IplImage ...
分类:其他好文   时间:2014-09-20 21:09:39    阅读次数:294
学习opencv-------函数使用一
1 #include"head.h" 2 //cvResize() 3 /*int main() 4 { 5 IplImage *img = cvLoadImage("e:/picture/Wife4.jpg"); 6 7 IplImage *big_img = cvCr...
分类:其他好文   时间:2014-09-19 23:47:16    阅读次数:207
OpenCV打开摄像头失败
#include #include #include #include int main( int argc, char** argv ) { //声明IplImage指针 IplImage* pFrame = NULL; IplImage* pFrImg = NULL; IplImage* pBkImg = NULL; CvMat* pFrameMat =...
分类:其他好文   时间:2014-09-18 19:02:17    阅读次数:256
qt中使用opencv处理图片 QImage 和 IplImage 相互之间转换问题
在用opencv处理图片显示在qt label上的时候遇到不是问题 1. qt上要用qimage形式才能显示 IplImage转成 Qimage 彩色图像转换  IplImage  *fram; QImage image((const uchar*)fram->imageData, fram->width, fram->height, QImage::Format_RGB888); ...
分类:其他好文   时间:2014-09-18 11:32:30    阅读次数:184
261条   上一页 1 ... 18 19 20 21 22 ... 27 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!