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

Correct overwrite of eout

parent b1a2bb27
No related branches found
No related tags found
2 merge requests!116Implements #133 point alignment,!114Ongoing #133 improvements
......@@ -78,11 +78,13 @@ __global__ void correspondence_energy_vector_kernel(
(bestpoint.y - world1.y),
(bestpoint.z - world1.z),
mincost);
//eout(x,y) = (1.0f - mincost) * 7.0f; //confidence * 5.0f;
eout(x,y) = confidence * 7.0f;
eout(x,y) = max(eout(x,y), (1.0f - mincost) * 7.0f); //confidence * 5.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) {
vout(x,y) = make_float4(0.0f);
eout(x,y) = 0.0f;
//vout(x,y) = make_float4(0.0f);
//eout(x,y) = 0.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