码迷,mamicode.com
首页 > 其他好文 > 详细

pcl之basic usage

时间:2018-11-20 00:07:54      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:www.   lower   check   ati   The   nta   pre   document   cert   

pcl之basic usage

  • width(int)
    two meanings:
  1. it can specify the total number of points in the cloud for unorganized point cloud datasets;
  2. it can specify the width (total number of points in a row) of an organized point cloud dataset.

    The advantages of an organized dataset is that by knowing the relationship between adjacent points (e.g. pixels), nearest neighbor operations are much more efficient, thus speeding up the computation and lowering the costs of certain algorithms in PCL.

cloud.width = 640; // there are 640 points per line
  • height(int)
    two meanings:
  1. it can specify the height (total number of rows) of an organized point cloud dataset;
  2. it is set to 1 for unorganized datasets (thus used to check whether a dataset is organized or not).
cloud1.width = 640; // Image-like organized structure, with 480 rows and 640 columns,
cloud1.height = 480; // thus 640*480=307200 points total in the dataset

cloud2.width = 307200;
cloud2.height = 1; // unorganized point cloud dataset with 307200 points
  • points(std::vector)
    Contains the data array where all the points of type PointT are stored.
pcl::PointCloud<pcl::PointXYZ> cloud;
std::vector<pcl::PointXYZ> data = cloud.points;  
  • is_dense(bool)
    Specifies if all the data in points is finite (true), or whether the XYZ values of certain points might contain Inf/NaN values (false).

  • isOrganized()
if (!cloud.isOrganized ())
// do something

参考

http://www.pointclouds.org/documentation/tutorials/basic_structures.php#basic-structures

pcl之basic usage

标签:www.   lower   check   ati   The   nta   pre   document   cert   

原文地址:https://www.cnblogs.com/ChrisCoder/p/9986357.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!