|
@@ -44,12 +44,17 @@ namespace bbiwarg.Recognition.PalmRecognition
|
|
|
|
|
|
public Vector2D getRelativePosition(Vector2D absolutePosition)
|
|
|
{
|
|
|
- return Quad.getRelativePosition(absolutePosition);
|
|
|
+ Vector2D relativePosition = Quad.getRelativePosition(absolutePosition);
|
|
|
+ float x = Math.Max(0, Math.Min(1, relativePosition.X));
|
|
|
+ float y = Math.Max(0, Math.Min(1, relativePosition.Y));
|
|
|
+ Console.WriteLine(x + "\t" + y);
|
|
|
+
|
|
|
+ return new Vector2D(x, y);
|
|
|
}
|
|
|
|
|
|
public bool isInside(Vector2D position)
|
|
|
{
|
|
|
- return Quad.isInside(position);
|
|
|
+ return Quad.isInside(position, Parameters.PalmInsideTolerance);
|
|
|
}
|
|
|
|
|
|
private void createQuad()
|