|
@@ -241,7 +241,7 @@ namespace bbiwarg
|
|
|
}
|
|
|
|
|
|
//image1
|
|
|
- OutputImages[1].drawImage(edgeImage.Image.Mul(255), Constants.EdgeImageColor);
|
|
|
+ OutputImages[1].drawImage(edgeImage.Image.ThresholdBinary(new Gray(0), new Gray(255)), Constants.EdgeImageColor);
|
|
|
foreach (Finger f in fingerTracker.Fingers)
|
|
|
{
|
|
|
for (int i = 0; i < f.SliceTrail.NumSlices; i++)
|
|
@@ -255,13 +255,13 @@ namespace bbiwarg
|
|
|
foreach (Hand h in handDetector.Hands)
|
|
|
{
|
|
|
if (h.Side == Hand.HandSide.Right)
|
|
|
- OutputImages[2].drawImage(h.Mask.Mul(255), Constants.HandRightColor);
|
|
|
+ OutputImages[2].drawImage(h.Mask.ThresholdBinary(new Gray(0), new Gray(255)), Constants.HandRightColor);
|
|
|
else
|
|
|
- OutputImages[2].drawImage(h.Mask.Mul(255), Constants.HandLeftColor);
|
|
|
+ OutputImages[2].drawImage(h.Mask.ThresholdBinary(new Gray(0), new Gray(255)), Constants.HandLeftColor);
|
|
|
}
|
|
|
|
|
|
//image3
|
|
|
- OutputImages[3].drawImage((depthImage.MaxDepth - depthImage.MinDepth) - depthImage.Image.Or(255 - handDetector.HandMask.Mul(255)), Constants.DepthImageColor);
|
|
|
+ OutputImages[3].drawImage((depthImage.MaxDepth - depthImage.MinDepth) - depthImage.Image.Or(255 - handDetector.HandMask.ThresholdBinary(new Gray(0), new Gray(255))), Constants.DepthImageColor);
|
|
|
foreach (TouchEvent te in touchTracker.TouchEvents)
|
|
|
OutputImages[3].fillCircle(te.Position.IntX, te.Position.IntY, 5, Constants.TouchEventTrackedColor);
|
|
|
if (palmDetector.PalmContour != null && palmDetector.PalmContour.Count<Point>() > 0)
|