The Microsoft Kinect SDK supports several types of image streams. In the example from the previous chapter, we started the device with the following options:
DWORD nuiFlags = NUI_INITIALIZE_FLAG_USES_SKELETON | NUI_INITIALIZE_FLAG_USES_COLOR | NUI_INITIALIZE_FLAG_USES_DEPTH; hr = context->NuiInitialize( nuiFlags );
It can be concluded from the enumeration values that three types of data will be allocated in the current application: the skeleton, the color, and the depth.
The color and depth data are of course necessary here because we are going to make use of them soon. The skeleton data will be first used in Chapter 4, Skeletal Motion and Face Tracking. Besides this, Kinect even provides two more types of data for us to select at the beginning of the application: