Anyone know what pixel format work best with OptiTrack + OpenCV integration?
Right now I'm using:
http://pastebin.com/f5e5941e3
And getting this result:
http://img26.imageshack.us/img26/6163/2 ... 112514.png
OptiTrack + OpenCV
Re: OptiTrack + OpenCV
Looks like you're using 4 bytes per pixel, so you want to update the GetFrameImage() call to this:
camera->GetFrameImage(frame, windowWidth, windowHeight, windowWidth, 32, (byte *) backbuffer->imageData);
camera->GetFrameImage(frame, windowWidth, windowHeight, windowWidth, 32, (byte *) backbuffer->imageData);
Re: OptiTrack + OpenCV
Yep thanks, I already manage to solve that.
But anyway, I think that working with 8bits instead of 32 it's far better, so I'm trying to figure that out.
But anyway, I think that working with 8bits instead of 32 it's far better, so I'm trying to figure that out.