New SDK coordinate Transformation

Post Reply
avelazquez
Posts: 19
Joined: Mon Jun 07, 2010 7:40 am

New SDK coordinate Transformation

Post by avelazquez » Thu Jan 06, 2011 8:52 am

Is there a transform method in the new SDK. How do I perform coordinate transformation in this new SDK, the way it was done in the old SDK?

Thanks!

beckdo
NaturalPoint Employee
NaturalPoint Employee
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: New SDK coordinate Transformation

Post by beckdo » Thu Jan 06, 2011 5:26 pm

What transformations are you referring to?

avelazquez
Posts: 19
Joined: Mon Jun 07, 2010 7:40 am

Re: New SDK coordinate Transformation

Post by avelazquez » Fri Jan 07, 2011 1:00 pm

This is information from the SDK Version 1.1.037 documentation:

If transformations are applied, the dot positions will change slightly. Transformed coordinates are relative to the device center. Transformations include camera orientation and mirroring the X and Y axis. Transformations can be performed by calling the Transform method of the INPObject interface.

Thanks!

beckdo
NaturalPoint Employee
NaturalPoint Employee
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: New SDK coordinate Transformation

Post by beckdo » Mon Jan 10, 2011 11:59 am

The transform options are a component of the old OptiTrack COM SDK and are not present in the new Camera SDK.

The Camera SDK outputs true centroid information as processed from the incoming frame data, no transformations are applied or needed.

The only transformation I could see users needing of the 2D data is applying or removing the lens distortion. This can be done via the helper functions:

Core::Distort2DPoint
Core::Predistort2DPoint

ITGuy327
Posts: 1
Joined: Sat Sep 15, 2012 6:57 pm

Re: New SDK coordinate Transformation

Post by ITGuy327 » Sat Sep 15, 2012 7:38 pm

I just started to use the SDK but building the vectortracking sample I receive the following message.

1>c:\program files (x86)\optitrack\camera sdk\samples\vectortracking\main.cpp(163): error C2039: 'Predistort2DPoint' : is not a member of 'Core'
1>c:\program files (x86)\optitrack\camera sdk\samples\vectortracking\main.cpp(163): error C3861: 'Predistort2DPoint': identifier not found

Any help would be appreciated. SDK Version is OptiTrack_Camera_SDK_1.1.3_Final

beckdo
NaturalPoint Employee
NaturalPoint Employee
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: New SDK coordinate Transformation

Post by beckdo » Mon Sep 17, 2012 11:12 am

Yes this slipped into the release unfortunately. Simply rename 'Predistort2DPoint' to 'Undistort2DPoint'.

Post Reply