Variable definitions

Post Reply
Susanne
Posts: 2
Joined: Fri Feb 18, 2011 11:20 am

Variable definitions

Post by Susanne »

Hi :)

Is there documentation for the definitions/explanation for these variable?
(see below)

I can guess what they are but actually need to be sure what they represent and their unit of measurement.

I am sending all my thanks !
Susanne

>
> double ScaleTranslationX;
> double ScaleTranslationY;
> double ScaleTranslationZ;
> double ScaleRotationYaw;
> double ScaleRotationPitch;
> double ScaleRotationRoll;
> double PivotOffsetX;
> double PivotOffsetY;
> double PivotOffsetZ;
> double ProcessedScale;
> double CenterX;
> double CenterY;
> double CenterZ;
Susanne
Posts: 2
Joined: Fri Feb 18, 2011 11:20 am

Re: Variable definitions

Post by Susanne »

Hi ;-)

Is there documentation for the definitions/explanation for these variable?
(see below)

I can guess what they are but actually need to be sure what they represent and their unit of measurement.

I am sending all my thanks !
Susanne

>
> double ScaleTranslationX;
> double ScaleTranslationY;
> double ScaleTranslationZ;
> double ScaleRotationYaw;
> double ScaleRotationPitch;
> double ScaleRotationRoll;
> double PivotOffsetX;
> double PivotOffsetY;
> double PivotOffsetZ;
> double ProcessedScale;
> double CenterX;
> double CenterY;
> double CenterZ;
NaturalPoint - Mike
Posts: 1896
Joined: Tue Feb 01, 2011 8:41 am
Location: Corvallis, OR

Re: Variable definitions

Post by NaturalPoint - Mike »

Hello Susanne -

Just wanted to let you know that I have this question out to our developers for exact answers, and as soon as I get them I'll let you know. Also, I moved the question to these forums from the TrackIR forums for a better audience.

Thanks -
mb78
Posts: 6
Joined: Thu Feb 14, 2013 6:47 am

Re: Variable definitions

Post by mb78 »

Has there ever been an answer to this?
tuskcode
Posts: 4
Joined: Tue Jun 13, 2017 3:41 am

Re: Variable definitions

Post by tuskcode »

After 6 years it seems the developers are struggling to provide answers to this relatively straight forward question :(
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: Variable definitions

Post by beckdo »

Hey tuskcode,

I'm not sure how this went unanswered for so long but here is a proper answer to this original question.

Basically, this cModuleVectorProcessing is purely optional for vector tracking. The cModuleVector delivers the raw three 3D marker locations corresponding to the three locations of the vector or track clip.

So at this point, you already have the tracked vector clip or track clip. The cModuleVectorProcessing attempts to perform some common post processing operations that you would do on the cModuleVector output. Primarily translational and rotational scaling. Setting a 'neutral' pose by calling Recenter(). Additionally, it allows you to modify the pivot point of the 3 markers.

So looking at the settings structure:

ScaleTranslationX/Y/Z : Translational scaling
ScaleRotationYaw/Pitch/Roll: Rotational scaling
PivotOffsetX/Y/Z : Adjust the pivot point of the vector/track clip markers.
SmoothX/Y/Z : Smoothing values.
Arrangement : 0=Vector Clip 1=Track Clip Pro
CenterX/Y/Z mCenterOrientation : These are translational & rotational values that are set when calling Recenter() which utilizes the current Translation & Rotation as the "centered" neutral value of tracking.

Smoothing values are passed to Smooth(). There is no actual smoothing performed in the cModuleVectorProcessing. The intent is that the user overrides Smooth() and either performs their own smoothing or uses a third party smoothing algorithm or library for more sophisticated smoothing to match the application.

Hopefully this helps. Thx--Doug
Post Reply