博客
关于我
openCV基础数据结构介绍
阅读量:126 次
发布时间:2019-02-26

本文共 1665 字,大约阅读时间需要 5 分钟。

 

Cxcore基础结构

    CvPoint,CvPoint2D32f,CvPoint3D32f,CvSize,CvSize2D32f,CvRect,CvScalar,CvTermCriteria,CvMat,CvMatND,CvSparseMat,IplImage,CvArr;

CvPoint

    二维坐标系下的点,类型为整型;
    成员: int x,int y;

CvPoint2D32f

    二维坐标下的点,类型为浮点;
    成员:float x, float y;

CvPoint3D32f

    三维坐标下的点,类型为浮点
    成员:float x, float y, float z;

CvSize

    矩形框大小,以像素为精度;
    成员:int width, int height;

CvSize2D32f

    以亚像素精度标量矩形框大小;
    成员:float width, float height;

CvRect

    矩形框的偏移和大小;
    成员:int x, int y,  int width, int height;

CvScalar

    可存放在1-,2-,3-,4-TUPLE类型的捆绑数据的容器;
    成员:double val[4];

CvTermCriteria

    迭代算法的终止准则;

#define CV_TERMCRIT_ITER    1

#define CV_TERMCRIT_NUMBER  CV_TERMCRIT_ITER
#define CV_TERMCRIT_EPS     2

    成员:int    type, int    max_ite, double epsilon;

CvMat

    多通道矩阵;
    成员:int type, int step, int* refcount, 
              union { uchar* ptr; short* s; int* i; float* fl; double* db;  } , ...... , ;

CvMatND

    多维、多通道密集数组;
    成员:int type, int dims, int* refcount, union { uchar* ptr; short* s;int* i; float* fl; double* db; } , struct{ int size;int step; }, dim[CV_MAX_DIM];

CvSparseMat

    多维、多通道稀疏数组;
    成员:int type, int dims, int* refcount, struct CvSet* heap, void** hashtable, int hashsize, int total,  int valoffset, int idxoffset, int size[CV_MAX_DIM];

IplImage

    IPL 图像头;
    成员: int  nSize, int  ID, int  nChannels, int  alphaChannel,  int  depth, char colorModel[4], char channelSeq[4], int  dataOrder, int  origin, int  align, int  width,
        int  height, struct _IplROI *roi, struct _IplImage *maskROI, void  *imageId, struct _IplTileInfo *tileInfo, int  imageSize, char *imageData, int  widthStep, 
        int  BorderMode[4], int  BorderConst[4], char *imageDataOrigin;

CvArr

    不确定数组;
    typedef void CvArr;
    CvArr* 仅仅是被用于作函数的参数,用于指示函数接收的数组类型可以不止一个,如 IplImage*, CvMat* 甚至 CvSeq*. 最终的数组类型是在运行时通过分析数组头的前4 个字节判断; 

转载地址:http://xpyy.baihongyu.com/

你可能感兴趣的文章
MYSQL8.0以上忘记root密码
查看>>
Mysql8.0以上重置初始密码的方法
查看>>
mysql8.0新特性-自增变量的持久化
查看>>
Mysql8.0注意url变更写法
查看>>
Mysql8.0的特性
查看>>
MySQL8修改密码报错ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
查看>>
MySQL8修改密码的方法
查看>>
Mysql8在Centos上安装后忘记root密码如何重新设置
查看>>
Mysql8在Windows上离线安装时忘记root密码
查看>>
MySQL8找不到my.ini配置文件以及报sql_mode=only_full_group_by解决方案
查看>>
mysql8的安装与卸载
查看>>
MySQL8,体验不一样的安装方式!
查看>>
MySQL: Host '127.0.0.1' is not allowed to connect to this MySQL server
查看>>
Mysql: 对换(替换)两条记录的同一个字段值
查看>>
mysql:Can‘t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock‘解决方法
查看>>
MYSQL:基础——3N范式的表结构设计
查看>>
MYSQL:基础——触发器
查看>>
Mysql:连接报错“closing inbound before receiving peer‘s close_notify”
查看>>
mysqlbinlog报错unknown variable ‘default-character-set=utf8mb4‘
查看>>
mysqldump 参数--lock-tables浅析
查看>>