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
That program is obsolete. You can actually use the new version of tkregister2 to create an xfm file,
tkregister2 --targ targ.mgz --mov mov.img --regheaders --reg reg.dat --xfmout reg.xfm
I'm sure you don't have the new version, so I've put it here: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/tkregister2
This is a 32bit RH linux compile. It may require a few more libraries than you have. Let us know.
doug
Stefano Pellegrini wrote:
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
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Hi Doug,
yes, actually after having downloaded the binary and chmod it to execute, I have this problem with libraries when I try to run it
./tkregister2: error while loading shared libraries: libvnl_algo.so: cannot open shared object file: No such file or directory
is this the kind of problem you were expecting?
-stefano
Doug Greve wrote:
That program is obsolete. You can actually use the new version of tkregister2 to create an xfm file,
tkregister2 --targ targ.mgz --mov mov.img --regheaders --reg reg.dat --xfmout reg.xfm
I'm sure you don't have the new version, so I've put it here: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/tkregister2
This is a 32bit RH linux compile. It may require a few more libraries than you have. Let us know.
doug
Stefano Pellegrini wrote:
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
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Stephano,
That version of tkregister2 requires the VXL libs. I've posted the binaries for that library for various OSs here:
ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/fsdev/nicks
For cenots4, the file is called vnl-libso-centos4.tar.gz.
Copy it to the directory where you keep tkregister2, change to that directory, and type:
tar zxvf vnl-libso-centos4.tar.gz setenv LD_LIBRARY_PATH $PWD
Then run tkregister2.
On Wed, 2006-09-20 at 16:58 -0400, Stefano Pellegrini wrote:
Hi Doug,
yes, actually after having downloaded the binary and chmod it to execute, I have this problem with libraries when I try to run it
./tkregister2: error while loading shared libraries: libvnl_algo.so: cannot open shared object file: No such file or directory
is this the kind of problem you were expecting?
-stefanoDoug Greve wrote:
That program is obsolete. You can actually use the new version of tkregister2 to create an xfm file,
tkregister2 --targ targ.mgz --mov mov.img --regheaders --reg reg.dat --xfmout reg.xfm
I'm sure you don't have the new version, so I've put it here: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/tkregister2
This is a 32bit RH linux compile. It may require a few more libraries than you have. Let us know.
doug
Stefano Pellegrini wrote:
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
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
it's perfect now! thanks Nick and Doug :)
-ste
Nick Schmansky wrote:
Stephano,
That version of tkregister2 requires the VXL libs. I've posted the binaries for that library for various OSs here:
ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/fsdev/nicks
For cenots4, the file is called vnl-libso-centos4.tar.gz.
Copy it to the directory where you keep tkregister2, change to that directory, and type:
tar zxvf vnl-libso-centos4.tar.gz setenv LD_LIBRARY_PATH $PWD
Then run tkregister2.
On Wed, 2006-09-20 at 16:58 -0400, Stefano Pellegrini wrote:
Hi Doug,
yes, actually after having downloaded the binary and chmod it to execute, I have this problem with libraries when I try to run it
./tkregister2: error while loading shared libraries: libvnl_algo.so: cannot open shared object file: No such file or directory
is this the kind of problem you were expecting?
-stefanoDoug Greve wrote:
That program is obsolete. You can actually use the new version of tkregister2 to create an xfm file,
tkregister2 --targ targ.mgz --mov mov.img --regheaders --reg reg.dat --xfmout reg.xfm
I'm sure you don't have the new version, so I've put it here: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/tkregister2
This is a 32bit RH linux compile. It may require a few more libraries than you have. Let us know.
doug
Stefano Pellegrini wrote:
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
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu