跳到主要内容

ApproximateVoxelGrid

ApproximateVoxelGrid assembles a local 3D grid over a given PointCloud, and downsamples + filters the data.

More: https://pointclouds.org/documentation/classpcl_1_1_approximate_voxel_grid.html

Constructor

new PCL.ApproximateVoxelGrid(pointType);

Parameters:

NameTypeDefaultDescription
pointTypePointTypePointXYZThe point cloud type.

Methods

setLeafSize()

setLeafSize(lx, ly, lz)

Parameters:

NameTypeDefaultDescription
lxnumberthe leaf size for X.
lynumberthe leaf size for Y.
lznumberthe leaf size for Z.

setDownsampleAllData()

setLeafSize(downsample);

Set to true if all fields need to be downsampled, or false if just XYZ.

Parameters:

NameTypeDefaultDescription
downsamplebooleanThe new value (true/false)
.

getDownsampleAllData()

getDownsampleAllData();

Get the state of the internal downsampling parameter (true if all fields need to be downsampled, false if just XYZ).

Returns:

NameType
downsampleboolean

setInputCloud

See PassThrough.setInputCloud

getInputCloud

See PassThrough.getInputCloud

filter

See PassThrough.filter