Page 1 of 1

apply transformation matrix to a .trc file

Posted: Wed Apr 10, 2019 3:24 pm
by sarabiomed
Hi Everybody,
I have a .trc file based on a specific lab coordinate exported from Vicon.
in order to input .trc file to run IK, I need to apply a transformation matrix which I got it from Amira to transform all marker position data.
Is there anybody who can help me to write Matlab script to apply the transformation matrix onto x,y,z data of .trc files and create a new .trc file?

As I am new to Opensim forum, I do appreciate your helpful comments in advance.
Sara

Re: apply transformation matrix to a .trc file

Posted: Fri Apr 12, 2019 5:58 am
by mitkof6
You can find more details in the user guide:

https://simtk-confluence.stanford.edu:8 ... +Your+Data

Please go through the section up to Tools for Preparing Motion Data.

Re: apply transformation matrix to a .trc file

Posted: Sun Apr 14, 2019 5:26 pm
by sarabiomed
mitkof6 wrote:
Fri Apr 12, 2019 5:58 am
You can find more details in the user guide:

https://simtk-confluence.stanford.edu:8 ... +Your+Data

Please go through the section up to Tools for Preparing Motion Data.
Thanks Dimitar for your useful link.

Re: apply transformation matrix to a .trc file

Posted: Mon Apr 15, 2019 6:48 am
by jimmy
You could also have a look at the contents of osimC3D.m, found in your OpenSim resources directory. osimC3D.m contains functions for rotating data and writing trc files to file.