Ejemplo n.º 1
0
        public static UInt32 addFingerCountRecognizer(FubiUtils.SkeletonJoint handJoint,
                                                      UInt32 minFingers, UInt32 maxFingers,
                                                      Int32 atIndex             = -1,
                                                      string name               = null,
                                                      float minConfidence       = -1.0f,
                                                      bool useMedianCalculation = false)
        {
            IntPtr namePtr = Marshal.StringToHGlobalAnsi(name);
            UInt32 ret     = FubiInternal.addFingerCountRecognizer(handJoint, minFingers, maxFingers, atIndex, namePtr, minConfidence, useMedianCalculation);

            Marshal.FreeHGlobal(namePtr);
            return(ret);
        }