pcl 基本数据类型

目录

1. width

 2. height

3. points

4. is_dense

5. sensor_origin_

6. sensor_orientation_


pcl 基本的数据类型是pcl::PointCloud,该数据线类型包含的字段有

1. width

:pcl:`width<pcl::PointCloud::width>` (int)

(1) 对于无组织点云数据集,宽度特指该点云所有点的个数;

(2)对于一个有组织的点云数据集,宽度是指一行有多少个点。

注:有组织的点云数据集是指类似于有组织的图像(或矩阵)结构的点云的名称,其中数据被分成行和列。

cloud.width = 640; // there are 640 points per line

 2. height

:pcl:`height<pcl::PointCloud::height>` (int)

(1) 对于无组织点云数据集,高度设置为1;

(2)对于一个有组织的点云数据集,高度等于行数。

// organized 
cloud.width = 640; // Image-like organized structure, with 480 rows and 640 columns,
cloud.height = 480; // thus 640*480=307200 points total in the dataset

// unorganized
cloud.width = 307200;
cloud.height = 1; // unorganized point cloud dataset with 307200 points

3. points

:pcl:`points<pcl::PointCloud::points>` (std::vector<PointT>)

points是一个vector,包含了所有点的一个数组

pcl::PointCloud<pcl::PointXYZ> cloud;  // define XYZ data

std::vector<pcl::PointXYZ> data = cloud.points;

4. is_dense

指定点云中的所有数据是有效的则为true,否则为false(True if no points are invalid (e.g., have NaN or Inf values).)

5. sensor_origin_

:pcl:`sensor_origin_<pcl::PointCloud::sensor_origin_>` (Eigen::Vector4f)

不常用

6. sensor_orientation_

:pcl:`sensor_orientation_<pcl::PointCloud::sensor_orientation_>` (Eigen::Quaternionf)

不常用

参考:Getting Started / Basic Structures — Point Cloud Library 0.0 documentation

  • 2
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Mr.Q

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值