Hi I’m working with the kinect and OpenCV libraries trying to create blob tracking in front of a projector screen. But I can’t figure out why there is a black frame around three sides of the two openCV tracking images (which is throwing off the blob tracking). From other people’s projects I don’t see this problem happening for other people and the frame appears regardless of where the kinect is pointed so I don’t think it is a threshold problem. Worst case I could crop it out of the feed I guess…
Hi, that’s OK.
what’s going on is that you have enabled the feature from OpenNI enables the correction of the depth image in relationship with the color one.
At least in ofxOpenNI you can toggle that with ofxOpenNiContext::toggleRegisterViewport()
I don’t remember how to call that directly from openCv, yet I remember that I’ve done so.
Cropping the image will do the job.
or you can use the valid pixels mask that openCv can get from the kinect,