Skip to content
Snippets Groups Projects
Commit 1773a028 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Working clipping in initial point pocessing

parent e1022e1c
No related branches found
No related tags found
1 merge request!84Implement #147 clipping
Pipeline #12661 passed
This commit is part of merge request !84. Comments created here will be created in the context of that merge request.
......@@ -28,8 +28,8 @@ struct __align__(16) HashParams {
unsigned int m_integrationWeightSample;
unsigned int m_integrationWeightMax;
int3 m_minBounds;
int3 m_maxBounds;
float3 m_minBounds;
float3 m_maxBounds;
float m_spatialSmoothing;
float m_colourSmoothing;
float m_confidenceThresh;
......
......@@ -295,14 +295,14 @@ HashParams SceneRep::_parametersFromConfig() {
params.m_flags = 0;
params.m_flags |= (value("clipping", false)) ? ftl::voxhash::kFlagClipping : 0;
params.m_flags |= (value("mls", false)) ? ftl::voxhash::kFlagMLS : 0;
params.m_maxBounds = make_int3(
value("bbox_x_max", 2.0f) / (params.m_virtualVoxelSize*SDF_BLOCK_SIZE),
value("bbox_y_max", 2.0f) / (params.m_virtualVoxelSize*SDF_BLOCK_SIZE),
value("bbox_z_max", 2.0f) / (params.m_virtualVoxelSize*SDF_BLOCK_SIZE));
params.m_minBounds = make_int3(
value("bbox_x_min", -2.0f) / (params.m_virtualVoxelSize*SDF_BLOCK_SIZE),
value("bbox_y_min", -2.0f) / (params.m_virtualVoxelSize*SDF_BLOCK_SIZE),
value("bbox_z_min", -2.0f) / (params.m_virtualVoxelSize*SDF_BLOCK_SIZE));
params.m_maxBounds = make_float3(
value("bbox_x_max", 2.0f),
value("bbox_y_max", 2.0f),
value("bbox_z_max", 2.0f));
params.m_minBounds = make_float3(
value("bbox_x_min", -2.0f),
value("bbox_y_min", -2.0f),
value("bbox_z_min", -2.0f));
return params;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment