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

Put MLS params in config file

parent 1f608d52
No related branches found
No related tags found
1 merge request!71Implements #130 for optional MLS merging
Pipeline #12343 passed
......@@ -28,6 +28,7 @@ struct __align__(16) HashParams {
float3 m_minBounds;
float3 m_maxBounds;
float m_spatialSmoothing;
float m_confidenceThresh;
};
} // namespace voxhash
......
......@@ -253,7 +253,8 @@ __global__ void integrateMLSKernel(HashData hashData, HashParams hashParams, int
// Calculate voxel sign values across a warp
int warpNum = i / WARP_SIZE;
uint solid_ballot = __ballot_sync(0xFFFFFFFF, (fabs(sdf) < 0.04f && weights > 20.0f) ? 1 : 0);
//uint laneMask = 1 << (i % WARP_SIZE);
uint solid_ballot = __ballot_sync(0xFFFFFFFF, (fabs(sdf) < hashParams.m_virtualVoxelSize && weights > hashParams.m_confidenceThresh) ? 1 : 0);
//uint valid_ballot = __ballot_sync(0xFFFFFFFF, (weights >= 1.0f) ? 1 : 0);
// Aggregate each warp result into voxel mask
......
......@@ -284,6 +284,7 @@ HashParams SceneRep::_parametersFromConfig() {
params.m_integrationWeightSample = value("SDFIntegrationWeightSample", 10);
params.m_integrationWeightMax = value("SDFIntegrationWeightMax", 255);
params.m_spatialSmoothing = value("spatialSmoothing", 0.04f); // 4cm
params.m_confidenceThresh = value("confidenceThreshold", 20.0f);
params.m_maxBounds = make_float3(
value("bbox_x_max", 2.0f),
value("bbox_y_max", 2.0f),
......
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