现在的位置: 首页 > 综合 > 正文

CvMat

2013年12月11日 ⁄ 综合 ⁄ 共 307字 ⁄ 字号 评论关闭

转自:ICVL

CvMat
多通道矩阵

typedef struct CvMat
{
int type; /* CvMat 标识 (CV_MAT_MAGIC_VAL), 元素类型和标记 */
int step; /* 以字节为单位的行数据长度*/
int* refcount; /* 数据引用计数 */
union
{
uchar* ptr;
short* s;
int* i;
float* fl;
double* db;
} data; /* data 指针 */

#ifdef __cplusplus
union
{
int rows;
int height;
};
union
{
int cols;
int width;
};
#else
int rows; /* 行数 */
int cols; /* 列数*/
#endif
} CvMat;

抱歉!评论已关闭.