![]() |
NiTE 2.0
|
#include <NiTE.h>
Public Member Functions | |
const Quaternion & | getOrientation () const |
float | getOrientationConfidence () const |
const Point3f & | getPosition () const |
float | getPositionConfidence () const |
JointType | getType () const |
This class provides a data structure to store the output of the Skeleton algorithm.
The basic purpose of the skeleton algorithm is to locate each of a user's joints, and to estimate the position and orientation of each joint in space. The output from the Skeleton algorithm is stored as a series of SkeletonJoint objects.
const Quaternion& nite::SkeletonJoint::getOrientation | ( | ) | const [inline] |
Get the current orientation of the joint represented by this object. This orientation will be represented by a Quaternion.
A confidence value is also available via the getOrientationConfidence() function to indicate how sure the algorithm is of this value.
float nite::SkeletonJoint::getOrientationConfidence | ( | ) | const [inline] |
Indicates how sure the NiTE skeleton algorithm is about the orientation data stored about this joint. The value is between 0 and 1, with increasing value indicating increasing confidence.
const Point3f& nite::SkeletonJoint::getPosition | ( | ) | const [inline] |
Get the current position of the joint. This will be represented as a point in space. The coordinates used are "real world" coordinates. See the OpenNI2 documentation for more information on coordinate systems.
A confidence value is also available via the getPositionConfidence() function to indicate how sure the algorithm is of this value.
float nite::SkeletonJoint::getPositionConfidence | ( | ) | const [inline] |
Indicates how sure the NiTE skeleton algorithm is about the position data stored about this joint. The value is between 0 and 1, with increasing value indicating increasing confidence.
JointType nite::SkeletonJoint::getType | ( | ) | const [inline] |
Gets the type of the joint represented by this particular object.