|
@@ -71,6 +71,10 @@ namespace bbiwarg.DataSource
|
|
|
Console.WriteLine(palmPosition[2]);
|
|
|
}
|
|
|
|
|
|
+ if (seenPoints.Count() <= 100)
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
return videoHandle.pixel2VertexPosition(foreFingerPosition);
|
|
|
}
|
|
|
|
|
@@ -101,11 +105,12 @@ namespace bbiwarg.DataSource
|
|
|
currentPoint[0] = point[0] + x;
|
|
|
currentPoint[1] = point[1] + y;
|
|
|
currentPoint[2] = videoHandle.getDepth((int)currentPoint[0], (int)currentPoint[1]);
|
|
|
- if (point == palmPosition || (Math.Abs(currentPoint[2] - point[2]) <= TOLERANCE_Z && point[1] <= palmPosition[1] && !seenPoints.Contains(currentPoint)))
|
|
|
+ if ((!seenPoints.Contains(currentPoint) && point[1] <= palmPosition[1] && Math.Abs(currentPoint[2] - point[2]) <= TOLERANCE_Z)
|
|
|
+ || point == palmPosition)
|
|
|
{
|
|
|
points.Add(currentPoint);
|
|
|
- seenPoints.Add(currentPoint);
|
|
|
}
|
|
|
+ seenPoints.Add(currentPoint);
|
|
|
}
|
|
|
}
|
|
|
}
|