Optical marker tracking and outputting positional data


New to Slicer and Python and am currently working on a project using the the optical marker tracking from PLUS and visualizing it with the SlicerIGT module.

I currently have a .mha sequence file saved tracking the transformation matrices of the markers (done using the Perk Tutor Transform Recorder). Is there a module that can calculate velocity and acceleration based on a sequence of transformation matrices? If not, would creating a module/script to read in the .mha file for the velocity and acceleration calculation be the easiest way to approach this?

Any help would be greatly appreciated!

Hi, the Perk Evaluator module in the Perk Tutor extension has some metrics. If you look at the source code, you will see that it was designed to make it easy to add additional metrics. Velocity and acceleration change over time, so there would not be a single value for a recording. But you could add metrics that calculate e.g. average velocity and average acceleration over the course of the whole sequence.