Page 5 of 5

Re: .net wrappers for c++ SDK

Posted: Thu Jul 19, 2012 12:10 pm
by beckdo
In native, it's pretty straight forward. The synchronizer class is cModuleSync. To attach and prepare cameras to return synchronized frames:

sync = new cModuleSync();

Then instead of calling camera->GetFrame(), you call sync->GetFrameGroup() which returns an array from camera frames that are synchronized.

Unforuntately this class doesn't appear to be wrapped by Brad's C# wrapper.

Re: .net wrappers for c++ SDK

Posted: Fri Jul 20, 2012 7:00 am
by jmoody6
I am using NPCameraSDKDotNet and have working C# code that calls 1 optitrack V120: SLIM camera, outputs its images to a window/saves them to a file. But I would like to do this with 2 synchronized cameras. Is this possible using NPCameraSDKDotNet? If so, how would I synchronize frames?

Any help would be greatly appreciated.

Re: .net wrappers for c++ SDK

Posted: Tue May 07, 2013 5:16 am
by motion3d
I was able to use the wrapper with vb net code, but i couldn't get the image using the Rasterize function.

Any help with main direction or an example how to get the image using vb net will be much appreciated.

Re: .net wrappers for c++ SDK

Posted: Tue May 07, 2013 12:47 pm
by beckdo
The main challenge of getting an image into VB will be marshaling the frame buffer to store the image. You effectively need to get an array of bytes into the wrapper layer that you can then pass to the native Camera SDK Frame::Rasterize() to populate.