Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setRegistration(true) seems to be not working #103

Closed
tk120404 opened this issue Aug 11, 2012 · 4 comments
Closed

setRegistration(true) seems to be not working #103

tk120404 opened this issue Aug 11, 2012 · 4 comments

Comments

@tk120404
Copy link

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

Tx

@chrisporter
Copy link

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
Copy link
Contributor

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 )

SoylentGraham added a commit to SoylentGraham/ofxKinect that referenced this issue Jun 16, 2013
When setRegistration is false, one of my [360] kinect's gives a depth
reading of 10000 which when remapped is out of range. Fixed by upping
the maxDepthLevels to 10001
danomatika added a commit that referenced this issue Jun 17, 2013
Fix for issue #103 - Depth-remapping out of range
@danomatika
Copy link
Collaborator

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

@danomatika
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants