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:
Name | Type | Default | Description |
---|---|---|---|
pointType | PointType | PointXYZ | The point cloud type. |
Methods
setLeafSize()
setLeafSize(lx, ly, lz)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
lx | number | the leaf size for X. | |
ly | number | the leaf size for Y. | |
lz | number | the leaf size for Z. |
setDownsampleAllData()
setLeafSize(downsample);
Set to true if all fields need to be downsampled, or false if just XYZ.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
downsample | boolean | The 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:
Name | Type |
---|---|
downsample | boolean |