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

setRegistration(true) seems to be not working #103

Closed tk120404 closed 11 years ago

tk120404 commented 12 years ago

Hi I am trying to get the calibratedRGBdepthimage by setRegistration(true); but i am getting the normal getPixels() value.

Tx

chrisporter commented 12 years ago

Also when you call setRegistration(true) the depth and IR cameras are not aligned and when calling it with false they are. Whenever calling it with false the program will crash randomly in Visual Studio with the error:

Expression: vector subscript out of range

SoylentGraham commented 11 years ago

I have 2 kinects (xbox360 ones, orange tip-usb, not sure if there are other ways of identifying models?) and I think I'm getting the same crash on one of my kinects; I'm leaving registration as the default (false) and when I get a crash, the depth-raw value is 10000 (same as maxDepthLevels) so when it accesses the depthLookupTable you get the out of range crash.

Changing maxDepthLevels to 10001 fixes my problem..

I'm not doing much other than default construction, this is my init() mKinect.init( false, true, false )

danomatika commented 11 years ago

Is this still an issue? I've accepted the PR by @SoylentGraham. Can you try the develop branch?

danomatika commented 11 years ago

ofxKinect development has now moved to the OF core. Please test again with the OF 0.8.0 release which now includes ofxKinect and log any further issues to the main OpenFrameworks repo.