详解OpenCV中的cvCreateMat()函数
2017-03-30 20:57
477 查看
CreateImage函数
Creates an matrix header and allocates the matrix data //创建矩阵头并分配矩阵数据。
.C:CvMat* cvCreateMat(int
rows,int cols,int type) //函数原型
Parameters
Rows -Numbers of rows in the matrix //矩阵的行数
Cols - Numbers of cols in the matrix
//矩阵的列数
type - The type of the matrix elements in the form CV_<bit depth><S|U|F>C<number of channels>,where S=signed,
U=unsigned,F=float..For example ,CV_8UC1 means the elements are 8-bit unsigned and there is 1 channel,andCV_32SC2 means the elements are 32-bit signed
and there are 2 channels.
注:这里type可以是任何预定义类型,预定义的结构如下:CV_<bit depth><S|U|F>C<number of channels>,于是,矩阵的元素可以是32位浮点型数据(CV_32FC2),或者是8位三元组的整型数据(CV_8UC3)
Creates an matrix header and allocates the matrix data //创建矩阵头并分配矩阵数据。
.C:CvMat* cvCreateMat(int
rows,int cols,int type) //函数原型
Parameters
Rows -Numbers of rows in the matrix //矩阵的行数
Cols - Numbers of cols in the matrix
//矩阵的列数
type - The type of the matrix elements in the form CV_<bit depth><S|U|F>C<number of channels>,where S=signed,
U=unsigned,F=float..For example ,CV_8UC1 means the elements are 8-bit unsigned and there is 1 channel,andCV_32SC2 means the elements are 32-bit signed
and there are 2 channels.
注:这里type可以是任何预定义类型,预定义的结构如下:CV_<bit depth><S|U|F>C<number of channels>,于是,矩阵的元素可以是32位浮点型数据(CV_32FC2),或者是8位三元组的整型数据(CV_8UC3)
相关文章推荐
- OpenCV中函数cvCreateMat的使用详解
- [转]opencv轮廓提取(findcontours函数详解)
- OpenCV中Hough函数各参数详解
- opencv:dft()函数详解
- OpenCV中的findContours函数参数详解
- OpenCV之putText()函数详解
- OPENCV 函数cvCreateMat
- opencv透视N点法函数详解
- 【OpenCV3】cv::Mat类成员函数详解
- OpenCv中的cv::Mat::create()函数,cvRound(),cvFloor(),cvCeil()函数的详解l
- (转)OPENCV 函数cvCreateMat
- HOG算子——计算方式,opencv函数详解,行人检测code
- opencv3中的imwrite函数详解
- OpenCV实现FloodFill泛洪填充算法的代码及相关函数详解
- OPENCV 函数cvCreateMat
- OPENCV 函数cvCreateMat
- OPENCV 函数cvCreateMat
- 【OpenCV3图像处理】查找二值图像的边缘 函数findContours()详解
- OpenCV各种函数详解#include<QDebug> qDebug() << "hello";