I have an application that logs transform data to a file. A callback function is attached to an observer watching for TrackerToolTransformUpdateEvent. Within the callback function I use a transform observer to check for and get the latest transform, and then log it to a file.<br>
<br>Over time, the rate at which these transforms are recorded drops significantly. I came across a section of Christopher Heath's thesis, Disablement of a Surgical Drill Via CT Guidance to Protect Vital Anatomy that describes a similar issue:<br>
<br>"A method was added to Landmark3DRegister to allow for pass by reference retrieval of transforms instead of using callbacks. This was implemented to prevent an issue that occurs with the callback method utilized by IGSTK when finding the transform many times."<br>
<br>Does anyone have any insight on what is happening or how to improve performance?<br><br>Cheers,<br><br>Jake<br><br>--<br>Jake McIvor<br>MASc Candidate, Biomedical Engineering<br>University of British Columbia<br><br><br>