|
@@ -23,6 +23,7 @@ namespace bbiwarg
|
|
private DepthImage depthImage;
|
|
private DepthImage depthImage;
|
|
private EdgeImage edgeImage;
|
|
private EdgeImage edgeImage;
|
|
private TouchImage touchImage;
|
|
private TouchImage touchImage;
|
|
|
|
+ private PalmImage palmImage;
|
|
|
|
|
|
private FingerDetector fingerDetector;
|
|
private FingerDetector fingerDetector;
|
|
private TouchDetector touchDetector;
|
|
private TouchDetector touchDetector;
|
|
@@ -90,6 +91,10 @@ namespace bbiwarg
|
|
return fingerDetector.isFingerPointAt(x, y);
|
|
return fingerDetector.isFingerPointAt(x, y);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public bool isPalmPointAt(int x, int y) {
|
|
|
|
+ return palmImage.belongsToPalm(x, y);
|
|
|
|
+ }
|
|
|
|
+
|
|
public TouchImageState getTouchImageStateAt(int x, int y) {
|
|
public TouchImageState getTouchImageStateAt(int x, int y) {
|
|
return touchImage.getStateAt(x, y);
|
|
return touchImage.getStateAt(x, y);
|
|
}
|
|
}
|
|
@@ -124,6 +129,8 @@ namespace bbiwarg
|
|
|
|
|
|
//track touchEvents
|
|
//track touchEvents
|
|
touchTracker.setDetectedTouchEventsThisFrame(touchDetector.getTouchEvents(), touchImage);
|
|
touchTracker.setDetectedTouchEventsThisFrame(touchDetector.getTouchEvents(), touchImage);
|
|
|
|
+
|
|
|
|
+ palmImage = new PalmImage(edgeImage);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|