Browse Source

improved finderDetection

Alexander Hendrich 11 years ago
parent
commit
25943ebcfe
1 changed files with 1 additions and 2 deletions
  1. 1 2
      bbiwarg/DepthImage.cs

+ 1 - 2
bbiwarg/DepthImage.cs

@@ -146,7 +146,6 @@ namespace bbiwarg
 
                             if ((edgeRightX - x) < maxFingerSize && depthLeft > depthMid && depthMid < depthRight) {
                                 fingerPoints[midX, y] = true;
-                             
                             } 
                         }
 
@@ -172,7 +171,7 @@ namespace bbiwarg
 
                         }
 
-                        x = edgeRightX - 1;
+                        //x = edgeRightX - 1; // better performance but looses some points (skips x-values where it has already found a horizontal-fingerPoint, but it will miss any vertical-fingerPoints in this area)
                     }
                 }
             }