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
apply transformation matrix to a .trc file
- Sara Farshidfar
- Posts: 2
- Joined: Thu Jan 17, 2019 3:13 pm
- Dimitar Stanev
- Posts: 1096
- Joined: Fri Jan 31, 2014 5:14 am
Re: apply transformation matrix to a .trc file
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.
https://simtk-confluence.stanford.edu:8 ... +Your+Data
Please go through the section up to Tools for Preparing Motion Data.
- Sara Farshidfar
- Posts: 2
- Joined: Thu Jan 17, 2019 3:13 pm
Re: apply transformation matrix to a .trc file
Thanks Dimitar for your useful link.mitkof6 wrote: ↑Fri Apr 12, 2019 5:58 amYou 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
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.