Back to FabImage Library website
You are here: Start » Function Reference » Point3DGrid » Point3DGrid Fitting » VoxelizePoint3DGrid

VoxelizePoint3DGrid
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | Vision3DPro |
Keeps one point from each occupied voxel of a given size. Value of all remaining grid points is set to invalid.
Syntax
C++
C#
void fil::VoxelizePoint3DGrid ( const fil::Point3DGrid& inPointGrid, ftl::Optional<const fil::Region&> inRoi, const float inVoxelSize, fil::Point3DGrid& outGrid )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inPointGrid | const Point3DGrid& | Input Point3DGrid | ||
![]() |
inRoi | Optional<const Region&> | NIL | Region of interest | |
![]() |
inVoxelSize | const float | 0.0 - ![]() |
0.5f | Defines a voxel size used to subsample the grid. |
![]() |
outGrid | Point3DGrid& | Subsampled points |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Input grid is empty in VoxelizePoint3DGrid. |
DomainError | Parameter inVoxelSize in VoxelizePoint3DGrid has to be greater than 0.0 |