Marker struct in NPTrackingTools

Post Reply
neill_solow
Posts: 41
Joined: Tue Nov 04, 2008 10:32 am

Marker struct in NPTrackingTools

Post by neill_solow » Sat Feb 18, 2012 5:17 am

Hi,
may be someone can help me with a tracking tools header...

I have found that new solution test is using array of markers
Marker *Markers,

where Marker declaring like a struct.

What does it mean, how can I recognize what is inside each marker struct in array ?

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

Re: Marker struct in NPTrackingTools

Post by beckdo » Tue Feb 21, 2012 5:17 pm

The Marker structure is declared in the Camera SDK's coremath.h

I'll put the definition here as well:

struct CLAPI Marker
{
void operator = ( const Marker &base ) { X=base.X; Y=base.Y; Z=base.Z; Size=base.Size; ID=base.ID; Residual=base.Residual; }
float X; //== Position in meters ==
float Y; //== Position in meters ==
float Z; //== Position in meters ==
float Size; //== Size in meters ======
int ID; //== Marker Label ========
float Residual; //== Residual in mm/ray ==
float DistanceSquared(Marker *marker);
float Distance(Marker *marker);

Marker() {};
Marker(float x, float y, float z) { X=x; Y=y; Z=z; };
void Set(float x, float y, float z) { X=x; Y=y; Z=z; };
};

neill_solow
Posts: 41
Joined: Tue Nov 04, 2008 10:32 am

Re: Marker struct in NPTrackingTools

Post by neill_solow » Wed Feb 22, 2012 12:30 am

Thank you, now it's clear.

Post Reply