apply transformation matrix to a .trc file

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Sara Farshidfar
Posts: 2
Joined: Thu Jan 17, 2019 3:13 pm

apply transformation matrix to a .trc file

Post by Sara Farshidfar » Wed Apr 10, 2019 3:24 pm

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

Tags:

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: apply transformation matrix to a .trc file

Post by Dimitar Stanev » 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.

User avatar
Sara Farshidfar
Posts: 2
Joined: Thu Jan 17, 2019 3:13 pm

Re: apply transformation matrix to a .trc file

Post by Sara Farshidfar » Sun Apr 14, 2019 5:26 pm

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.

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: apply transformation matrix to a .trc file

Post by jimmy d » Mon Apr 15, 2019 6:48 am

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.

POST REPLY