|
@@ -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;
|
|
|
|