ofTheo/ofxKinect

getPixelsRef returns the depth pixels

Closed this issue · 1 comments

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().

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?