Hi Satra et al,
thanks a lot and it would be great if you could find some code!
In the meantime, I tried the following based on information from Kiho Im:
# we have to first remove transformation of 'vertex to RAS' embedded in smoothwm surface.
mris_transform lh.smoothwm identity.xfm ./lh.smoothwm.clean
# then use the flirt T1-to-b0 matrix converted from .mat to .xfm format to transform the surface
mris_transform lh.smoothwm.clean T1-to-b0.xfm lh.b0.smoothwm
And of course: it didn't work.. In the attached screenshot, the red surface is the original one which kind of fits the b0 image but not very well (it obviously fits the original T1 very well). The blue is the transformed surface (lh.b0.smoothwm) and is completely off.
Do you know what I could be doing wrong? I also attached both tranforms. Maybe I just converted them wrong.
Thanks!!
Daniel