Commits

Cliff Biffle  committed 7aa4ec5

KVAveragingDepthMap's edge detection is now Z-scaled, so it's better at noticing continuous distant surfaces. (The previous version would start to become noisy at about four meters.)

  • Participants
  • Parent commits 3630228

Comments (0)

Files changed (1)

File KVAveragingDepthMap.m

       
       float prev = out->z[y][x];
       float delta = fabsf(linear - out->z[y][x]);
-      if (prev == 0.F || delta > 0.1F) {
+      if (prev == 0.F || delta > 0.05F * linear) {
         // If we've never gotten data for this point,
         // or if it's changed substantially,
         // we take what we can get!