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 ?
Marker struct in NPTrackingTools
Re: Marker struct in NPTrackingTools
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; };
};
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; };
};
-
- Posts: 41
- Joined: Tue Nov 04, 2008 10:32 am
Re: Marker struct in NPTrackingTools
Thank you, now it's clear.