Page 1 of 1

Marker struct in NPTrackingTools

Posted: Sat Feb 18, 2012 5:17 am
by neill_solow
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 ?

Re: Marker struct in NPTrackingTools

Posted: Tue Feb 21, 2012 5:17 pm
by beckdo
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; };
};

Re: Marker struct in NPTrackingTools

Posted: Wed Feb 22, 2012 12:30 am
by neill_solow
Thank you, now it's clear.