cvCreateMat的用法
分配矩阵空间:
CvMat*cvCreateMat(int rows , int cols ,int type);
Type:矩阵元素类型,格式为CV_<bit_depth>(S/U/F)C<number_of_channels>
如:CV_8UC1 表示8位无符号单通道矩阵
CV_32SC2 表示32位有符号双通道矩阵
例程:CvMat* M =cvCreateMat(4,
cvCreateMat的用法
分配矩阵空间:
CvMat*cvCreateMat(int rows , int cols ,int type);
Type:矩阵元素类型,格式为CV_<bit_depth>(S/U/F)C<number_of_channels>
如:CV_8UC1 表示8位无符号单通道矩阵
CV_32SC2 表示32位有符号双通道矩阵
例程:CvMat* M =cvCreateMat(4,