From d2a615ceef93d0b8ef35329fd8a56ddbcacbee28 Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Fri, 27 Sep 2019 16:26:16 +0300 Subject: [PATCH] Correct overwrite of eout --- applications/reconstruct/src/ilw/ilw.cu | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/applications/reconstruct/src/ilw/ilw.cu b/applications/reconstruct/src/ilw/ilw.cu index 42fe05cbf..6acc5c677 100644 --- a/applications/reconstruct/src/ilw/ilw.cu +++ b/applications/reconstruct/src/ilw/ilw.cu @@ -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; } } -- GitLab