OptiTrack + OpenCV

Post Reply
Veehmot
Posts: 10
Joined: Fri Mar 06, 2009 5:28 am

OptiTrack + OpenCV

Post 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
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: OptiTrack + OpenCV

Post 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);
Veehmot
Posts: 10
Joined: Fri Mar 06, 2009 5:28 am

Re: OptiTrack + OpenCV

Post 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.
Post Reply