SL_VoxelMeasureParameters Struct Reference

Parameters controlling voxel decimation in sl_retrieve_voxel_measure. More...

Data Fields

float voxel_size
 Voxel grid cell size in coordinate_units defined in SL_InitParameters. If <= 0, a 100 mm equivalent default is used. Clamped internally to [5 mm equivalent, max_depth_range].
 
bool centroid
 Controls output point positions within each voxel. If true, output point positions are the centroid of all points in each voxel. If false, output positions are snapped to the voxel grid center.
 
enum SL_VOXELIZATION_MODE resolution_mode
 How voxel size adapts with depth. Default: SL_VOXELIZATION_MODE_STEREO_UNCERTAINTY.
 
float resolution_scale
 Scale factor for depth-adaptive voxel growth. Typical range: [0.01, 1.0]. Clamped internally to [0.01, 3.0]. More...
 

Detailed Description

Parameters controlling voxel decimation in sl_retrieve_voxel_measure.

Field Documentation

◆ resolution_scale

float SL_VoxelMeasureParameters::resolution_scale

Scale factor for depth-adaptive voxel growth. Typical range: [0.01, 1.0]. Clamped internally to [0.01, 3.0].

Note
Only used when resolution_mode is not SL_VOXELIZATION_MODE_FIXED.