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

Per pixel depth adjustments

parent 56c2e423
No related branches found
No related tags found
1 merge request!259Improvements to depth alignment
......@@ -85,7 +85,8 @@ __global__ void corresponding_depth_kernel(
// the greater they are from the warp concensus best cost
// Sum all squared distance errors in a 4x4 pixel neighborhood
cost = ftl::cuda::halfWarpSum(cost) / 16.0f;
float wcost = ftl::cuda::halfWarpSum(cost) / 16.0f;
cost = (wcost + cost) / 2.0f; // Enables per pixel adjustments
// Record the best result
bestStep = (cost < bestcost) ? i : bestStep;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment