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

Correct overwrite of eout

parent b1a2bb27
Branches
Tags
2 merge requests!116Implements #133 point alignment,!114Ongoing #133 improvements
...@@ -78,11 +78,13 @@ __global__ void correspondence_energy_vector_kernel( ...@@ -78,11 +78,13 @@ __global__ void correspondence_energy_vector_kernel(
(bestpoint.y - world1.y), (bestpoint.y - world1.y),
(bestpoint.z - world1.z), (bestpoint.z - world1.z),
mincost); mincost);
//eout(x,y) = (1.0f - mincost) * 7.0f; //confidence * 5.0f; eout(x,y) = max(eout(x,y), (1.0f - mincost) * 7.0f); //confidence * 5.0f;
eout(x,y) = confidence * 7.0f;
// FIXME: This needs to be summed across all frames
//eout(x,y) = max(eout(x, y), confidence * 7.0f);
} else if (mincost >= 1.0f && lane == 0) { } else if (mincost >= 1.0f && lane == 0) {
vout(x,y) = make_float4(0.0f); //vout(x,y) = make_float4(0.0f);
eout(x,y) = 0.0f; //eout(x,y) = 0.0f;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment