Functions |
XN_C_API XnStatus | xnCreateHandsGenerator (XnContext *pContext, XnNodeHandle *phHandsGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors) |
| Creates an hands generator.
|
XN_C_API XnStatus | xnRegisterHandCallbacks (XnNodeHandle hInstance, XnHandCreate CreateCB, XnHandUpdate UpdateCB, XnHandDestroy DestroyCB, void *pCookie, XnCallbackHandle *phCallback) |
| Register to hands callbacks.
|
XN_C_API XnStatus | xnSetTrackingSmoothing (XnNodeHandle hInstance, XnFloat fFactor) |
| Change smoothing factor.
|
XN_C_API XnStatus | xnStartTracking (XnNodeHandle hInstance, const XnPoint3D *pPosition) |
| Start tracking at a specific position.
|
XN_C_API XnStatus | xnStopTracking (XnNodeHandle hInstance, XnUserID user) |
| Stop tracking a specific hand.
|
XN_C_API XnStatus | xnStopTrackingAll (XnNodeHandle hInstance) |
| Stop tracking all hands.
|
XN_C_API void | xnUnregisterHandCallbacks (XnNodeHandle hInstance, XnCallbackHandle hCallback) |
| Unregister from hands callbacks.
|
Detailed Description
A Hands Generator node is a Generator that tracks hand points. It supports all Generator functions, and adds additional functions.
Function Documentation
Creates an hands generator.
- Parameters:
-
pContext | [in] The context in which to create the hands generator. |
phHandsGenerator | [out] A handle to the created hands generator. |
pQuery | [in] Optional. Can be used to select which hands generator to create. If not specified, this function may create any hands generator that is available. |
pErrors | [in] Optional. If provided, will be filled with information about hands generators that could not be created. |
Register to hands callbacks.
- Parameters:
-
hInstance | [in] A handle to the instance |
CreateCB | [in] Callback to be called when a new hand is created |
UpdateCB | [in] Callback to be called when an existing hand has a new position |
DestroyCB | [in] Callback to be called when an existing hand has vanished |
pCookie | [in] User's cookie, to be delivered to the callbacks |
phCallback | [out] The handle to these callbacks, to allow unregistration |
Change smoothing factor.
- Parameters:
-
hInstance | [in] A handle to the instance |
fFactor | [in] Smoothing factor, in the range 0..1. 0 Means no smoothing, 1 means infinite smoothing. Inside the range is generator dependent. |
Start tracking at a specific position.
- Parameters:
-
hInstance | [in] A handle to the instance |
pPosition | [in] The position at which there is a new hand |
Stop tracking a specific hand.
- Parameters:
-
hInstance | [in] A handle to the instance |
user | [in] The hand to stop tracking |
Stop tracking all hands.
- Parameters:
-
hInstance | [in] A handle to the instance |
Unregister from hands callbacks.
- Parameters:
-
hInstance | [in] A handle to the instance |
hCallback | [in] The handle received from registration |