Hello FSL experts,
I am trying to apply an affine transformation to my dyads volume. I did so with vecreg successfully but I am trying to implement it in matlab to be able to apply to single voxels instead of the entire volume. Following some of the threads of the forum, I had done the following steps:
1. Extracted rotation, skew and shear matrices from my affine.mat registrationg using avscale
2. Concatenated the registrations catmat=shrmat*skmat*Rmat
3. Applied the registration: rot_dyad=catmat*orig_dyad
rot_dyad = [ -0.4306 0.4555 0.7791]
vecreg_dyad = [ -0.4330 0.4689 0.7699]
As you can see, the resulting vector is really close to the one obtained with vecreg but not the same. Am I skipping any steps? did I do a mistake?
Thank you in advance for your help,
Giorgia Grisot
PhD candidate
Medical Engineering & Medical Physics (MEMP)
Harvard-MIT Division of Health Sciences and Technology
857-233-6180
########################################################################
To unsubscribe from the FSL list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=FSL&A=1
|