[IGSTK-Users] Transform Data Export
Ziv Yaniv
zivy at isis.imac.georgetown.edu
Thu Jun 11 10:56:31 EDT 2009
Hi Jake,
You should take a look at the OpenIGTLinkTrackerBroadcasting example.
You can easily modify it to do what you want (writing to file instead of
to socket). It already works for multiple tools, with or without a
reference frame. Please read the IGSTK book for the full details.
All you need to do is modify the ToolUpdatedObserver class found in
OpenIGTLinkTrackingBroadcaster.h. Instead of the m_Sockets and
m_PositionMessage members you will have an ostream member which you
write the data to, this will happen in the Execute method which you need
to slightly modify.
regards
Ziv
On Wed, Jun 10, 2009 at 5:26 PM, Jake
McIvor<jdmcivor at interchange.ubc.ca> wrote:
> Hey,
>
> I am developing a drill guidance application and would like to export
> some data for offline analysis. That data would consist of timestamps
> and transforms from several tracker tools or spatial objects.
> Ideally, I would like to start and stop data export from my
> application. What is the best way of implementing this? Should I be
> looking at using an observer, a logger, openigtlink..?
>
> Cheers,
>
> Jake
--
Ziv Yaniv, PhD., Research Assistant Professor
Imaging Science and Information Systems (ISIS) Center
Department of Radiology
Georgetown University Medical Center
2115 Wisconsin Avenue, Suite 603
Washington, DC, 20007,
Phone: +1-202-687-7286
Fax: +1-202-784-3479
email: zivy at isis.georgetown.edu
web: http://isiswiki.georgetown.edu/zivy/
More information about the IGSTK-Users
mailing list