跳到主要内容

RandomSample

https://pointclouds.org/documentation/classpcl_1_1_random_sample.html

RandomSample 应用具有均匀概率的随机抽样。

构造函数​

new PCL.RandomSample(pointType, extractRemovedIndices);

参数:

名称类型默认值描述
pointTypePointTypePointXYZ点云类型。
extractRemovedIndicesbooleanfalse使用 true 初始化将允许我们提取删除的索引。

方法​

setSample​

setSample(sample);

设置要采样的索引数。

参数:

名称类型默认值描述
samplenumber要采样的索引数。

getSample​

getSample();

setSeed​

setSeed(seed);

设置随机函数的种子。

参数:

名称类型默认值描述
seednumber随机函数的种子。

getSeed​

getSeed();

setNegative​

See PassThrough.setNegative

getNegative​

See PassThrough.getNegative

setKeepOrganized​

See PassThrough.setKeepOrganized

getKeepOrganized​

See PassThrough.getKeepOrganized

setUserFilterValue​

See PassThrough.setUserFilterValue

setInputCloud​

See PassThrough.setInputCloud

getInputCloud​

See PassThrough.getInputCloud

filter​

See PassThrough.filter