ofTheo / ofxKinect

legacy openFrameworks wrapper for the xbox kinect (OF pre-0.8.0+ only) - ofxKinect is now included and is being maintained in OF releases
MIT License
540 stars 105 forks source link

getPixelsRef returns the depth pixels #82

Closed danomatika closed 12 years ago

danomatika commented 12 years ago

getPixelsRef() currently returns a reference to the depth pixels when it should return the reference to the video pixels, as does getPixels(). This is my fault and occurred during the latest cleanup.

In fixing this, I think a getDepthPixelsRef() should be added to complement getDepthPixels().

danomatika commented 12 years ago

Also, Kyle, this was what was causing the assertion in cv::toCv as the cvtColor command was failing since it wasn't dealing with RGB or RGBA data. Is Mat strictly color?