aihot  2017-05-13 23:38:09  OpenCV |   查看评论   
    // OpenCV忽略它,并改用widthStep
  |-- char colorModel[4]; // 颜色模型 - 由OpenCV忽略

 

矩阵:

CvMat                      // 2维矩阵
  |-- int   type;          // 元素类型(uchar,short,int,float,double)
  |-- int   step;          // 一行所占字节长度
  |-- int   rows, cols;    // 尺寸大小
  |-- int   height, width; // 备用尺寸参照
  |-- union data;
     |-- uchar*  ptr;     // 针对unsigned char矩阵的数据指针
      |-- short*  s;       // 针对short矩阵的数据指针
      |-- int*    i;       // 针对integer矩阵的数据指针
      |-- float*  fl;      // 针对float矩阵的数据指针
      |-- double* db;      // 针对double矩阵的数据指针


CvMatND                    // N-维矩阵
  |-- int   type;          // 元素类型(uchar,short,int,float,double)
  |-- int   dims;       

 

除特别注明外,本站所有文章均为 赢咖4注册 原创,转载请注明出处来自openCV图像、数组、矩阵

留言与评论(共有 0 条评论)
   
验证码:
[lianlun]1[/lianlun]