Class containing a set of parameters for the spatial mapping module. More...
Functions | |
SpatialMappingParameters (float resolutionMeter=0.05f, float rangeMeter=0.0f, bool saveTexture=false, SPATIAL_MAP_TYPE map_type=SPATIAL_MAP_TYPE.MESH, bool useChunkOnly=false, int maxMemoryUsage=2048, bool reverseVertexOrder=false, int stabilityCounter=0) | |
Default constructor. More... | |
void | set (MAPPING_RESOLUTION mappingResolution=MAPPING_RESOLUTION.MEDIUM) |
Sets the resolution to a sl.MAPPING_RESOLUTION preset. More... | |
void | set (MAPPING_RANGE mappingRange=MAPPING_RANGE.MEDIUM) |
Sets the range to a sl.MAPPING_RANGE preset. More... | |
Static Functions | |
static float | get (MAPPING_RESOLUTION mappingResolution=MAPPING_RESOLUTION.MEDIUM) |
Returns the value corresponding to a sl.MAPPING_RESOLUTION preset in meters. More... | |
static float | get (MAPPING_RANGE mappingRange=MAPPING_RANGE.MEDIUM) |
Returns the value corresponding to a sl.MAPPING_RANGE preset in meters. More... | |
Attributes | |
float | resolutionMeter = 0.05f |
Spatial mapping resolution in meters. More... | |
float | rangeMeter = 0.0f |
Depth range in meters. More... | |
bool | saveTexture = false |
Whether to save the texture. More... | |
bool | useChunkOnly = false |
Whether to only use chunks. More... | |
int | maxMemoryUsage = 2048 |
The maximum CPU memory (in MB) allocated for the meshing process. More... | |
bool | reverseVertexOrder = false |
Whether to inverse the order of the vertices of the triangles. More... | |
SPATIAL_MAP_TYPE | map_type = SPATIAL_MAP_TYPE.MESH |
The type of spatial map to be created. This dictates the format that will be used for the mapping(e.g. mesh, point cloud). See SPATIAL_MAP_TYPE More... | |
int | stabilityCounter = 0 |
Control the integration rate of the current depth into the mapping process. More... | |
Class containing a set of parameters for the spatial mapping module.
The default constructor sets all parameters to their default settings.
|
inline |
Default constructor.
Sets all parameters to their default and optimized values.
|
inlinestatic |
Returns the value corresponding to a sl.MAPPING_RESOLUTION preset in meters.
mappingResolution | The desired sl.MAPPING_RESOLUTION. Default: sl.MAPPING_RESOLUTION.MEDIUM |
|
inlinestatic |
Returns the value corresponding to a sl.MAPPING_RANGE preset in meters.
mappingRange | The desired sl.MAPPING_RANGE. Default: sl.MAPPING_RANGE.MEDIUM |
|
inline |
Sets the resolution to a sl.MAPPING_RESOLUTION preset.
mappingResolution | The desired sl.MAPPING_RESOLUTION. Default: sl.MAPPING_RESOLUTION.MEDIUM |
|
inline |
Sets the range to a sl.MAPPING_RANGE preset.
mappingRange | The desired sl.MAPPING_RANGE. Default: sl.MAPPING_RANGE.MEDIUM |
float resolutionMeter = 0.05f |
Spatial mapping resolution in meters.
Referenced by Camera.GetSpatialMappingParameters(), SpatialMappingParameters.set(), and SpatialMappingParameters.SpatialMappingParameters().
float rangeMeter = 0.0f |
Depth range in meters.
Can be different from the value set by sl.InitParameters.depthMaximumDistance.
Referenced by SpatialMappingParameters.set(), and SpatialMappingParameters.SpatialMappingParameters().
bool saveTexture = false |
Whether to save the texture.
If set to true, you will be able to apply the texture to your mesh after it is created.
Referenced by SpatialMappingParameters.SpatialMappingParameters().
bool useChunkOnly = false |
Whether to only use chunks.
If set to false, you will ensure consistency between the mesh and its inner chunk data.
Referenced by SpatialMappingParameters.SpatialMappingParameters().
int maxMemoryUsage = 2048 |
The maximum CPU memory (in MB) allocated for the meshing process.
Referenced by SpatialMappingParameters.SpatialMappingParameters().
bool reverseVertexOrder = false |
Whether to inverse the order of the vertices of the triangles.
If your display process does not handle front and back face culling, you can use this to correct it.
Referenced by SpatialMappingParameters.SpatialMappingParameters().
SPATIAL_MAP_TYPE map_type = SPATIAL_MAP_TYPE.MESH |
The type of spatial map to be created. This dictates the format that will be used for the mapping(e.g. mesh, point cloud). See SPATIAL_MAP_TYPE
Referenced by SpatialMappingParameters.SpatialMappingParameters().
int stabilityCounter = 0 |
Control the integration rate of the current depth into the mapping process.
This parameter controls how many times a stable 3D points should be seen before it is integrated into the spatial mapping.
Default: 0 (this will define the stability counter based on the mesh resolution, the higher the resolution, the higher the stability counter)
Referenced by SpatialMappingParameters.SpatialMappingParameters().