cvCreateImage

https://blog.csdn.net/breeze5428/article/details/30050327 

cvCreateImage创建图像首地址,并分配存储空间。

IplImage*cvCreateImage(CvSize cvSize(int width, int height), int depth, int channels);

参数说明:

cvSize() 图像宽和高。

depth:图像像素的位深度:

 depth: pixel depth in bits:

IPL_DEPTH_8U :8位无符号整数

IPL_DEPTH_8S, :8位符号整数

IPL_DEPTH_16U : 16位无符号整数
IPL_DEPTH_16S : 16位符号整数

IPL_DEPTH_32S :32位符号整数

IPL_DEPTH_32F: 单精度浮点数

IPL_DEPTH_64F :双精度浮点数

channels:通道1,2,3,4,

b0,g0,r0, b1, g1. r1.....

The Safest Way to Get what you Want is to Try and Deserve What you Want.
原文地址:https://www.cnblogs.com/Shinered/p/10172863.html