摘要: 详细介绍可参看CSDN官方介绍,链接地址http://msdn.microsoft.com/zh-cn/library/hh279678.aspx以下是应用中的实例: 1 2 #include //异常处理库 3 4 //内参数矩阵mK求逆,并打印显示其逆矩阵 5 try ... 阅读全文
posted @ 2014-09-06 08:58 Eastern Sunrise 阅读(208) 评论(0) 推荐(0) 编辑
摘要: OpenCV中Mat矩阵data数据的存储方式和二维数组不一致,二维数组按照行优先的顺序依次存储,而Mat中还有一个标示行步进的变量Step。使用Mat.ptr(row) 行指针的方式定位到每一行,可快速遍历矩阵。例程如下: 1 std::cout (i);// mInv... 阅读全文
posted @ 2014-09-06 08:48 Eastern Sunrise 阅读(2309) 评论(0) 推荐(0) 编辑
摘要: 1.一般的Mat定义方法:cv::Mat M(height,width,),例: cv::Mat M(480,640,CV_8UC3); 表示定义了一个480行640列的矩阵,矩阵的每个单元的由三个(C3:3 Channel)8位无符号整形(U Unsigned U8 8位)构成。2.将已有数组赋... 阅读全文
posted @ 2014-09-06 08:25 Eastern Sunrise 阅读(46454) 评论(1) 推荐(2) 编辑
摘要: 在PCL显示点云部分程序中,涉及到了如下程序1 // 定义相关变量2 pcl::PointCloud::Ptr cloud_ptr (new pcl::PointCloud);3 pcl::PointCloud& cloud = *cloud_ptr; //点云出现了 & a = *b; 的表... 阅读全文
posted @ 2014-09-05 16:37 Eastern Sunrise 阅读(903) 评论(0) 推荐(0) 编辑
摘要: 1 // 定义相关变量 2 pcl::PointCloud::Ptr cloud_ptr (new pcl::PointCloud); 3 pcl::PointCloud& cloud = *cloud_ptr; //点云 4 //初始化点云数据PCD文件头 ... 阅读全文
posted @ 2014-09-05 15:39 Eastern Sunrise 阅读(7967) 评论(0) 推荐(0) 编辑
摘要: OpenCV 只提供了读取和存储.xml和.yml 文件格式的函数。读取.xml文件的C++例程如下: 1 cv::FileStorage fs; //OpenCV 读XML文件流 2 cv::Mat DepthData; //深度数据矩阵 3 std::stri... 阅读全文
posted @ 2014-09-05 15:30 Eastern Sunrise 阅读(3144) 评论(0) 推荐(0) 编辑