Example #1
0
        public static UInt32 addJointRelationRecognizer(FubiUtils.SkeletonJoint joint, FubiUtils.SkeletonJoint relJoint,
                                                        float minX             = -FubiUtils.Math.MaxFloat, float minY = -FubiUtils.Math.MaxFloat, float minZ = -FubiUtils.Math.MaxFloat,
                                                        float maxX             = FubiUtils.Math.MaxFloat, float maxY  = FubiUtils.Math.MaxFloat, float maxZ  = FubiUtils.Math.MaxFloat,
                                                        float minDistance      = 0, float maxDistance                 = FubiUtils.Math.MaxFloat,
                                                        bool useLocalPositions = false,
                                                        Int32 atIndex          = -1, string name = null,
                                                        float minConfidene     = -1.0f, FubiUtils.BodyMeasurement measuringUnit = FubiUtils.BodyMeasurement.NUM_MEASUREMENTS)
        {
            IntPtr namePtr = Marshal.StringToHGlobalAnsi(name);
            UInt32 ret     = FubiInternal.addJointRelationRecognizer(joint, relJoint, minX, minY, minZ, maxX, maxY, maxZ, minDistance, maxDistance, useLocalPositions, atIndex, namePtr, minConfidene, measuringUnit);

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