浏览代码

removed unnecessary maxX&maxY

Alexander Hendrich 11 年之前
父节点
当前提交
803f771b5e
共有 1 个文件被更改,包括 0 次插入12 次删除
  1. 0 12
      bbiwarg/Detectors/FingerDetection/FingerDetector.cs

+ 0 - 12
bbiwarg/Detectors/FingerDetection/FingerDetector.cs

@@ -171,9 +171,6 @@ namespace bbiwarg.Detectors.FingerDetection
 
         private FingerSlice getFingerSlice(Vector2D start, Vector2D end)
         {
-            int maxX = depthImage.Width - 1;
-            int maxY = depthImage.Height - 1;
-
             Vector2D direction = (end - start).normalize();
             Vector2D directionInv = direction.getInverse();
             Vector2D beforeStart = (start + Constants.FingerSliceOverlapFactor * directionInv).moveInBound(Vector2D.Zero, depthImage.BottomRight, direction);
@@ -212,9 +209,6 @@ namespace bbiwarg.Detectors.FingerDetection
 
         private bool isCrippleFinger(Finger finger)
         {
-            int maxX = depthImage.Width - 1;
-            int maxY = depthImage.Height - 1;
-
             FingerSlice midSlice = finger.SliceTrail.MidSlice;
             Vector2D direction = midSlice.Direction;
             Vector2D directionInv = direction.getInverse();
@@ -231,9 +225,6 @@ namespace bbiwarg.Detectors.FingerDetection
 
         private FingerSlice findOutSlice(Vector2D start, Vector2D direction)
         {
-            int maxX = depthImage.Width - 1;
-            int maxY = depthImage.Height - 1;
-
             Vector2D dirOrth1 = direction.getOrthogonal(true);
             Vector2D dirOrth2 = direction.getOrthogonal(false);
 
@@ -248,9 +239,6 @@ namespace bbiwarg.Detectors.FingerDetection
 
         private FingerSliceTrail orderTrailTipToHand(FingerSliceTrail trail)
         {
-            int maxX = depthImage.Width - 2;
-            int maxY = depthImage.Height - 2;
-
             FingerSlice start = trail.StartSlice;
             FingerSlice end = trail.EndSlice;