2016年3月24日

摘要: 1、mat.data.ptr是一个数据块的起始地址的指针,是uchar型(mat是CvMat mat) 2、mat.step是一行有多少个字节 3、float* ptr=(float*)(mat.data.ptr+mat.step)可以将指针指向下一行数据的起始地址 #include "stdafx 阅读全文
posted @ 2016-03-24 18:51 *惜 阅读(413) 评论(0) 推荐(0)
 
摘要: 一、创建矩阵的方式: 1、cvCreateMat(int rows,int cols,int type),Type可以使任何预定义类型。Type的写法规则:CV_<bit_depth>(S|U|F)C<number_of_channels,比如CV_32FC1, 32位浮点型,单通道。 CvMat* 阅读全文
posted @ 2016-03-24 16:00 *惜 阅读(521) 评论(0) 推荐(0)