Back to Aurora Vision Library website
You are here: Start » Function Reference » Point3DGrid » Point3DGrid Fitting » VoxelizePoint3DGrid
VoxelizePoint3DGrid
Header: | AVL.h |
---|---|
Namespace: | avl |
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 avl::VoxelizePoint3DGrid ( const avl::Point3DGrid& inPointGrid, atl::Optional<const avl::Region&> inRoi, const float inVoxelSize, avl::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 |