[IGSTK-Users] Get time stamp

Eric L. B. eric_lb at hotmail.com
Mon Apr 20 13:41:20 EDT 2009



 
Hi all!!!!
I'm trying to get the time stamp of a transformation with a NDI Polaris tracker.

I use this code:

                        TT1 = T1Observer->GetTransform();

                        timeT1= TT1.GetStartTime();

 

According with igstkTransform.h:

             /** Returns the time at which the validity of this information starts. The

             * data in this transform should not be used for scenes to be rendered

             * before that validity time. The time is returned in milliseconds. 

             *

             * \sa TimeStamp 

             *

             * */

             TimePeriodType GetStartTime() const;

 

Then, what i get is a time expressed in milliseconds, but i need this time in format DDMMYYYY or similar in order to compare and evaluate this time with the timestamp of an extern image attached to the tool beign tracked. (I get this image from a frame grabber).
When I try to convert to a DDMMYYYY, i get that the year is 777 (at least is not 666 ja ja ja).

 

I've used the function  void RealTimeClock::Print(std::ostream& os, itk::Indent indent)   to view the realtimeclock settings.

There are three parameters initialized by  void RealTimeClock::Initialize(): frecuency, difference and origin.

My question is what this variables mean???????? In particular the difference and origin variables. This variables have effect on the result of GetStarTime()?????????????

How can i compare my two times with a same format time????

 

I hope someone can help me please, I can't found the way :(

Thanks!!!!!

 

 

Eric LB


 

_________________________________________________________________
¿Quieres ganar premios con Windows Live? 
www.actualizatuperfil.com.mx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20090420/3168a4f4/attachment-0001.html>


More information about the IGSTK-Users mailing list