OptiTrack + OpenCV

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

OptiTrack + OpenCV

Post by Veehmot » Mon Mar 09, 2009 6:40 am

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

Re: OptiTrack + OpenCV

Post by beckdo » Mon Mar 09, 2009 3:38 pm

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 » Tue Mar 10, 2009 5:09 am

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