xn.DepthGenerator.ConvertRealWorldToProjective C# (CSharp) Метод

ConvertRealWorldToProjective() публичный Метод

public ConvertRealWorldToProjective ( Point3D realWorldPoints ) : xn.Point3D[]
realWorldPoints Point3D
Результат xn.Point3D[]
        public Point3D[] ConvertRealWorldToProjective(Point3D[] realWorldPoints)
        {
            Point3D[] projective = new Point3D[realWorldPoints.Length];
            UInt32 status = OpenNIImporter.xnConvertRealWorldToProjective(this.InternalObject, (uint)realWorldPoints.Length, realWorldPoints, projective);
            WrapperUtils.CheckStatus(status);
            return projective;
        }

Same methods

DepthGenerator::ConvertRealWorldToProjective ( Point3D realWorldPoint ) : Point3D

Usage Example

Пример #1
0
 private static SkeletonJointPosition Joint(SkeletonCapability skeletonCapability, DepthGenerator depthGenerator, uint user, SkeletonJoint joint)
 {
     var pos = new SkeletonJointPosition();
     skeletonCapability.GetSkeletonJointPosition(user, joint, ref pos);
     if (pos.position.Z == 0)
     {
         pos.fConfidence = 0;
     }
     else
     {
         pos.position = depthGenerator.ConvertRealWorldToProjective(pos.position);
     }
     return pos;
 }