Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the MLThumb class.
 /// </summary>
 public MLThumb()
 {
     MCP = new MLKeyPoint(true);
     IP  = new MLKeyPoint(true);
     Tip = new MLKeyPoint(true);
     // Assign all valid KeyPoints to an easy to access list.
     KeyPoints = new List <MLKeyPoint>();
     if (MCP.IsSupported)
     {
         KeyPoints.Add(MCP);
     }
     if (IP.IsSupported)
     {
         KeyPoints.Add(IP);
     }
     if (Tip.IsSupported)
     {
         KeyPoints.Add(Tip);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the MLFinger class.
 /// </summary>
 public MLFinger(uint bones = 3)
 {
     MCP = new MLKeyPoint(bones >= 2);
     PIP = new MLKeyPoint(bones >= 3); // Only valid for: Index/Middle Finger
     Tip = new MLKeyPoint(bones >= 1);
     // Assign all valid KeyPoints to an easy to access list.
     KeyPoints = new List <MLKeyPoint>();
     if (MCP.IsSupported)
     {
         KeyPoints.Add(MCP);
     }
     if (PIP.IsSupported)
     {
         KeyPoints.Add(PIP);
     }
     if (Tip.IsSupported)
     {
         KeyPoints.Add(Tip);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the MLWrist class.
 /// </summary>
 public MLWrist()
 {
     Center = new MLKeyPoint(true);
     Ulnar  = new MLKeyPoint(false);
     Radial = new MLKeyPoint(false);
     // Assign all valid KeyPoints to an easy to access list.
     KeyPoints = new List <MLKeyPoint>();
     if (Center.IsSupported)
     {
         KeyPoints.Add(Center);
     }
     if (Ulnar.IsSupported)
     {
         KeyPoints.Add(Ulnar);
     }
     if (Radial.IsSupported)
     {
         KeyPoints.Add(Radial);
     }
 }