Functions

IR Generator
[Production Nodes Functionality]

Functions

XN_C_API XnStatus xnCreateIRGenerator (XnContext *pContext, XnNodeHandle *phIRGenerator, XnNodeQuery *pQuery, XnEnumerationErrors *pErrors)
XN_C_API XnIRPixelxnGetIRMap (XnNodeHandle hInstance)
XN_C_API void xnGetIRMetaData (XnNodeHandle hInstance, XnIRMetaData *pMetaData)

Detailed Description

An IR Generator node is a Map Generator that outputs infra-red maps. It supports all Map Generator functions, and adds additional functions.


Function Documentation

XN_C_API XnStatus xnCreateIRGenerator ( XnContext pContext,
XnNodeHandle phIRGenerator,
XnNodeQuery pQuery,
XnEnumerationErrors pErrors 
)

Creates an IR generator.

Parameters:
pContext [in] The context in which to create the IR generator.
phIRGenerator [out] A handle to the created IR generator.
pQuery [in] Optional. Can be used to select which IR generator to create. If not specified, this function may create any IR generator that is available.
pErrors [in] Optional. If provided, will be filled with information about IR generators that could not be created.
XN_C_API XnIRPixel* xnGetIRMap ( XnNodeHandle  hInstance  ) 

Gets the current IR-map. This map is updated after a call to xnWaitAndUpdateData().

Parameters:
hInstance [in] A handle to the instance.
Returns:
NULL if this production node is not an IR generator.
XN_C_API void xnGetIRMetaData ( XnNodeHandle  hInstance,
XnIRMetaData pMetaData 
)

Gets the current IR-map meta data.

Parameters:
hInstance [in] A handle to the instance.
pMetaData [in] The struct to be filled.