[IGSTK-Users] Transform Data Export
Andinet Enquobahrie
andinet.enqu at kitware.com
Fri Jun 12 20:54:52 EDT 2009
Jake-
The OpenIGTLink repository that we use is
http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink/
Download the the source tree and build it using cmake.
By the way, we have copied OpenIGTLink related IGSTK classes and
example from the sandbox to the main CVS in preparation for IGSTK 4.2
release. So, you might want to focus on the main CVS not the Sandbox.
Andinet
On Thu, Jun 11, 2009 at 2:54 PM, Jake McIvor<jdmcivor at interchange.ubc.ca> wrote:
> Thanks for the guidance. I have tried using transform observers as
> suggested by Andinet and they work well for taking single snapshots.
> I will try to implement the modification of the OpenIGTLink class and
> let you know how it goes.
>
> I had started looking into the OpenIGTLink examples before, but had
> some difficulty building the sandbox. The SVN checkout of OpenIGTLink
> that I got was missing several files and causing problems compiling
> igstkTersonImager. I am not that familiar with using SVN, so it may
> be the settings I chose. I found the missing files here:
> http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink/
>
> Thanks again,
>
> Jake
>
> --
> Jake McIvor
> MASc. Candidate, Biomedical Engineering
> University of British Columbia
>
> On Thu, Jun 11, 2009 at 7:56 AM, Ziv Yaniv<zivy at isis.imac.georgetown.edu> wrote:
>> 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