IplImage cvCreateImage

The IplImage object was inherited from the Intel Image Processing Library, in which the format is
native. OpenCV only supports a subset of possible IplImage formats.


nChannels Number of channels, int.通道的数目,一般为3
width Image width in pixels 图像宽度
height Image height in pixels
depth Pixel depth in bits. The supported depths are:
IPL_ DEPTH_8U Unsigned 8-bit integer 无符号8位整数

IPL_DEPTH_8S Signed 8-bit integer
IPL_DEPTH_16U Unsigned 16-bit integer
IPL_DEPTH_16S Signed 16-bit integer
IPL_DEPTH_32S Signed 32-bit integer
IPL_DEPTH_32F Single-precision floating point
IPL_DEPTH_64F Double-precision floating point
origin 0 - top-left origin, 1 - bottom-left origin (Windows bitmap style)
tostring() -> str Returns the contents of the CvMatND as a single string.

 

IplImage * cvCreateImage(CvSize size,int depth,int channels);

Example: IplImage * img = cvCreateImage(CvSize(600,480),IPL_DEPTH_8U,3);

                cvSet(img,CvScalar(255,255,255));

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值