主要内容

removeInvalidPoints

从点云中移除无效点

描述

例子

ptCloudOut指数) = removeInvalidPoints (ptCloud删除分点云的坐标值并返回有效点的索引。

例子

全部折叠

创建一个点云对象值。

xyzpoints = abs (randn (10, 3)) * 100;xyzpoints(1:2:4:) =南(“单一”);xyzpoints(6:2:10:) =正(“单一”);ptCloud = pointCloud (xyzpoints);

检查位置属性的点云数据,以验证发生值。

ptCloud。位置
ans =10×3南南南183.3885 303.4923 120.7487南南南86.2173 6.3055 163.0235 31.8765 71.4743 48.8894 Inf Inf Inf 43.3592 12.4144 72.6885 Inf Inf Inf 357.8397 140.9034 29.3871 Inf Inf Inf Inf

删除分来自点云的值。

ptCloudOut = removeInvalidPoints (ptCloud);

检查位置属性,以验证无效点是否被删除。

ptCloudOut。位置
ans =5×3183.3885 303.4923 120.7487 86.2173 6.3055 163.0235 31.8765 71.4743 48.8894 43.3592 12.4144 72.6885 357.8397 140.9034 29.3871

输入参数

全部折叠

点云,指定为pointCloud对象。

输出参数

全部折叠

点云,归为一pointCloud对象与坐标移除。

请注意

输出总是无组织的(X3)点云。如果输入ptCloud是一个有组织的点云(——- - - - - -N-by-3),函数将输出作为一个无组织的点云。

点云中有效点的索引,指定为向量。

扩展功能

C / c++代码生成
使用MATLAB®Coder™生成C和c++代码。

GPU的代码生成
使用GPU Coder™为NVIDIA®GPU生成CUDA®代码。

另请参阅

|

介绍了R2015a