|
@@ -27,7 +27,7 @@ namespace bbiwarg.Detectors.Touch
|
|
this.outputImage = outputImage;
|
|
this.outputImage = outputImage;
|
|
this.fingers = fingers;
|
|
this.fingers = fingers;
|
|
this.TouchEvents = new List<TouchEvent>();
|
|
this.TouchEvents = new List<TouchEvent>();
|
|
- float floodValueThreshold = 0.5f;
|
|
|
|
|
|
+ float floodValueThreshold = 0.33f;
|
|
|
|
|
|
foreach (Finger finger in fingers)
|
|
foreach (Finger finger in fingers)
|
|
{
|
|
{
|
|
@@ -71,7 +71,7 @@ namespace bbiwarg.Detectors.Touch
|
|
Int16 depth = depthImage.getDepthAt(x, y);
|
|
Int16 depth = depthImage.getDepthAt(x, y);
|
|
Color color = outputImage.getColotAt(x, y);
|
|
Color color = outputImage.getColotAt(x, y);
|
|
Color subtractColor;
|
|
Color subtractColor;
|
|
- if (Math.Abs(depthAtTouch - depth) < maxDepthDifference)
|
|
|
|
|
|
+ if (depthAtTouch < depth && Math.Abs(depthAtTouch - depth) < maxDepthDifference)
|
|
{
|
|
{
|
|
matchedPixels++;
|
|
matchedPixels++;
|
|
subtractColor = Constants.TouchEventAreaMatchedSubtractColor;
|
|
subtractColor = Constants.TouchEventAreaMatchedSubtractColor;
|