pcdownsample
Downsample 3-D point cloud
Syntax
Description
returns a downsampled point cloud. Use this syntax for random sampling without
replacement. The ptCloudOut = pcdownsample(ptCloudIn,"random",percentage)percentage input specifies the portion of
the input to return to the output.
returns a downsampled point cloud using a box grid filter. The
ptCloudOut = pcdownsample(ptCloudIn,"gridAverage",gridStep)gridStep input specifies the size of a 3-D box.
returns a downsampled point cloud by selecting points closest to the centroid in
each grid, using a box grid filter. The ptCloudOut = pcdownsample(ptCloudIn,"gridNearest",gridStep)gridStep input
specifies the size of a 3-D box.
returns a downsampled point cloud using nonuniform box grid filter. You must set
the maximum number of points in the grid box, ptCloudOut = pcdownsample(ptCloudIn,"nonuniformGridSample",maxNumPoints)maxNumPoints,
to at least 6.
[
returns the linear indices for the points that are included in the downsampled
point cloud. This syntax applies only when you use the
ptCloudOut,indices] = pcdownsample(___)"random", "gridNearest", or
"nonuniformGridSample" downsampling methods.
___ = pcdownsample(___,
specifies options using one or more name-value arguments in addition to any
combination of arguments from previous syntaxes. For example,
Name=Value)pcdownsample(PtCloud,"random",percentage,PreserveStructure=true)
preserves the organized structure of a point cloud.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
References
[1] Pomerleau, F., F. Colas, R. Siegwart, and S. Magnenat. “Comparing ICP variants on real-world data sets.” Autonomous Robots. Vol. 34, Issue 3, April 2013, pp. 133–148.
Extended Capabilities
Version History
Introduced in R2015aSee Also
Functions
pcdenoise|pcplayer|pcshow|pcwrite|pcread|pcfitplane|pcmerge|pctransform|pcregistericp|pcregisterndt


