Skip to main content

RandomSample

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

RandomSample applies a random sampling with uniform probability.

Constructor​

new PCL.RandomSample(pointType, extractRemovedIndices);

Parameters:

NameTypeDefaultDescription
pointTypePointTypePointXYZThe point cloud type.
extractRemovedIndicesbooleanfalseInitializing with true will allow us to extract the removed indices.

Methods​

setSample​

setSample(sample);

Set number of indices to be sampled.

Parameters:

NameTypeDefaultDescription
samplenumberNumber of indices to be sampled.

getSample​

getSample();

setSeed​

setSeed(seed);

Set seed of random function.

Parameters:

NameTypeDefaultDescription
seednumberseed of random function.

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