joshuajnoble / ofxKinectCommonBridge

A wrapper for the simple Kinect for Windows library developed at Microsoft in partnership with myself & James George
Other
89 stars 36 forks source link

populate and store new NUI_DEPTH_IMAGE_PIXEL* array #26

Closed momo-the-monster closed 10 years ago

momo-the-monster commented 10 years ago

I've replaced the temporary NUI_DEPTH_IMAGE_PIXEL* array you were using in mappingDepthToColor with a permanent one stored in the class so that this array can be accessed publicly. I did this from a need to get to the playerIndex, and to use this array for the INuiFusionReconstruction::DepthToDepthFloatFrame method I'm using to integrate Kinect Fusion.

This is not really ideal - instead I think we would properly integrate Kinect Fusion as you're doing with Face Tracking and Voice Recognition, but having access to this array in its original form is helpful in the meantime.