kinekt

// get depthData
depthGenerator.GetMetaData(depthMetaData);
unsigned short* pix = (unsigned short*) depthMetaData.Data();

// get UserPixels
userGenerator.GetUserPixels(0, sceneMetaData);
unsigned short *userPix = (unsigned short*)sceneMetaData.Data();

// get imageData
xn::ImageMetaData imageMetaData;
imageGenerator.GetMetaData(imageMetaData);
unsigned char *imagePix = (unsigned char*) imageMetaData.Data();