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

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

Cxcore基础结构

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

迭代算法的终止准则。
成员: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 imageDataId, struct _IplTileInfo tileInfo, int imageSize, char imageData, int widthStep, int BorderMode[4], int BorderConst[4], char imageDataOrigin。

CvArr

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

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

你可能感兴趣的文章
python Opencv图像基础操作
查看>>
Python OpenCV将图像转换为字节字符串?
查看>>
python OpenCV视频的读取及保存
查看>>
python open和file的区别
查看>>
python open读取文件并对换行进行处理
查看>>
python os, os.path和sys模块
查看>>
Python os.environ 处理环境变量
查看>>
python os.path模块常用方法详解
查看>>
python os.system
查看>>
Python os.system执行多条语句,os.system的返回值以及与os.popen的区别
查看>>
Python os和sys模块
查看>>
python os文件/目录
查看>>
Python Package 之 Faker(随机姓名、电话)
查看>>
python运算符优先级
查看>>
Python Panda TIME 系列重新采样
查看>>
python pandas TimeStamps到夏令时的本地时间字符串
查看>>
Python pandas 数据清洗与数据绘图实战
查看>>
Python输出信息
查看>>
Python Pandas 用顶行替换标题
查看>>
Python pandas 通过 dt 访问器有效地将日期时间转换为时间戳
查看>>