Hi everybody,
I have a problem with regdat2xfm. I have a reg.dat file that I made using tkregister2 to register a couple of volumes (targ .mgz and mov .img) from one of my subjects. Now, if I try to use the reg.dat file with tkregister2 and the two original files, everything is fine: I ask tkregister2 to read the reg file and the registration is what I made before. Then I convert reg.dat in reg.xfm, and I want to use the .xfm file with mincresample (after having converted the mov .img file in a .mnc file with mri_convert), I get a completely wrong transformation. also, I was wondering if there is anyway to write the output transformed volume directly inside tkregister2.
these are the commands I am using
data: targ.mgz mov.img (the file I want to move onto targ.mgz)
commands: tkregister2 --targ targ.mgz --mov mov.img --regheaders --reg reg.dat regdat2xfm WM.img targ.mgz reg.dat reg.xfm mri_convert targ.mgz targ.mnc mri_convert WM.img WM.mnc mincresample -transformation reg.xfm -like targ.mnc WM.mnc reg_WM.mnc
thanks,
-stefano