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