Page 1 of 1

OptiTrack + OpenCV

Posted: Mon Mar 09, 2009 6:40 am
by Veehmot
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

Re: OptiTrack + OpenCV

Posted: Mon Mar 09, 2009 3:38 pm
by beckdo
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);

Re: OptiTrack + OpenCV

Posted: Tue Mar 10, 2009 5:09 am
by Veehmot
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.