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

range adjustment

parent c090972d
No related branches found
No related tags found
1 merge request!122Implements #183 depth ray correspondences
...@@ -96,6 +96,8 @@ bool ILW::process(ftl::rgbd::FrameSet &fs, cudaStream_t stream) { ...@@ -96,6 +96,8 @@ bool ILW::process(ftl::rgbd::FrameSet &fs, cudaStream_t stream) {
_phase0(fs, stream); _phase0(fs, stream);
params_.range = 0.05f;
for (int i=0; i<iterations_; ++i) { for (int i=0; i<iterations_; ++i) {
int win; int win;
switch (i) { switch (i) {
...@@ -108,6 +110,7 @@ bool ILW::process(ftl::rgbd::FrameSet &fs, cudaStream_t stream) { ...@@ -108,6 +110,7 @@ bool ILW::process(ftl::rgbd::FrameSet &fs, cudaStream_t stream) {
_phase2(fs, motion_rate_, stream); _phase2(fs, motion_rate_, stream);
//} //}
params_.range *= 0.5f;
// TODO: Break if no time left // TODO: Break if no time left
} }
......
...@@ -61,7 +61,7 @@ __global__ void correspondence_energy_vector_kernel( ...@@ -61,7 +61,7 @@ __global__ void correspondence_energy_vector_kernel(
float bestdepth; float bestdepth;
int count = 0; int count = 0;
const float step_interval = 0.05f / (COR_STEPS / 2); const float step_interval = params.range / (COR_STEPS / 2);
const float3 rayStep_world = pose1.getFloat3x3() * cam1.screenToCam(x,y,step_interval); const float3 rayStep_world = pose1.getFloat3x3() * cam1.screenToCam(x,y,step_interval);
const float3 rayStart_2 = pose2 * world1; const float3 rayStart_2 = pose2 * world1;
......
...@@ -13,6 +13,7 @@ struct ILWParams { ...@@ -13,6 +13,7 @@ struct ILWParams {
float colour_smooth; float colour_smooth;
float cost_ratio; float cost_ratio;
float threshold; float threshold;
float range;
uint flags; uint flags;
}; };
......
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