users
users > RE: File format and registration problem
Mar 23, 2011 06:03 PM | Torsten Rohlfing
RE: File format and registration problem
Hi Thomas:
You know of course there are no stupid question - just stupid answers ;)
Since you're asking about tiff and multiple color channels, let me start by pointing out that CMTK cannot handle 2D data, only 3D, and it cannot handle vector-valued data, such as RGB. Just to get these two out of the way.
I usually use the ConvertBetweenImageFormats tool from ITK's companion "InsightApplications" to convert file formats, but ImageJ should work at least as well.
Now for your specific problems:
a) unfortunately you found a typo in the CMTK User Guide - the registration tool has an option "--auto-multi-levels", not "--auto-multi-level" as it says in the guide. I will fix that in the next revision. Simply change your command line by adding the missing "s" and things should work.
As a general suggestion - all tools in CMTK support the "--help" option, which will print a list of all supported command line options for that particular tool.
b) the problem you have with "warp" is probably related to the fact that the preceding "registration" command failed and did not actually generate any output file at all. What's a bit curious, though is that the error message for a non-existing input transformation should say that it doesn't exist, not that it is in an unsupported format. If the problem persists after fixing the "registration" command, feel free to send me the "affine.xform" contents (this is most likely a directory) and I'll take a closer look.
Best,
Torsten
Originally posted by Thomas Templier:
You know of course there are no stupid question - just stupid answers ;)
Since you're asking about tiff and multiple color channels, let me start by pointing out that CMTK cannot handle 2D data, only 3D, and it cannot handle vector-valued data, such as RGB. Just to get these two out of the way.
I usually use the ConvertBetweenImageFormats tool from ITK's companion "InsightApplications" to convert file formats, but ImageJ should work at least as well.
Now for your specific problems:
a) unfortunately you found a typo in the CMTK User Guide - the registration tool has an option "--auto-multi-levels", not "--auto-multi-level" as it says in the guide. I will fix that in the next revision. Simply change your command line by adding the missing "s" and things should work.
As a general suggestion - all tools in CMTK support the "--help" option, which will print a list of all supported command line options for that particular tool.
b) the problem you have with "warp" is probably related to the fact that the preceding "registration" command failed and did not actually generate any output file at all. What's a bit curious, though is that the error message for a non-existing input transformation should say that it doesn't exist, not that it is in an unsupported format. If the problem persists after fixing the "registration" command, feel free to send me the "affine.xform" contents (this is most likely a directory) and I'll take a closer look.
Best,
Torsten
Originally posted by Thomas Templier:
Hello,
I'm doing my first steps with CMTK and have several problems.
File format :
-- I'm using .tif files of confocal images. Some have one channel, and some have several channels (image[0:100] red channel, and image[101:200] green channel for example). The only converter tool I've found that can convert a .tif in a file read by CMTK is ImageJ that converts a .tif in a .nrrd file. Is it a good solution ?
Registration : I've tried to use the affine and the nonrigid registration implemented in CMTK with my two .nrrd files.
-- when I use like in the tutorial
So thank you for your help. I hope there are not too stupid questions, otherwise feel free to indicate me some tutorials I've missed.
Thomas
I'm doing my first steps with CMTK and have several problems.
File format :
-- I'm using .tif files of confocal images. Some have one channel, and some have several channels (image[0:100] red channel, and image[101:200] green channel for example). The only converter tool I've found that can convert a .tif in a file read by CMTK is ImageJ that converts a .tif in a .nrrd file. Is it a good solution ?
Registration : I've tried to use the affine and the nonrigid registration implemented in CMTK with my two .nrrd files.
-- when I use like in the tutorial
registration --initxlate --dofs 6,9
--auto-multi-level 4 -o affine.xform ref.nrrd flt.nrrd
I have the following :WARNING : the following command line
arguments were not used: --auto-öulti-level 4 -o affine.xform
ref.nrrd flt.nrrd
Unknown option: --auto-multi-level [argument#0]
-- if I useUnknown option: --auto-multi-level [argument#0]
warp -o ffd40.xform --grid-spacing 40
--initial affine.xform ref.nii flt.nii
then I haveThe file/directory affine.xform does not
seem to be in a supported transformation format
So thank you for your help. I hope there are not too stupid questions, otherwise feel free to indicate me some tutorials I've missed.
Thomas
Threaded View
| Title | Author | Date |
|---|---|---|
| Thomas Templier | Mar 23, 2011 | |
| Torsten Rohlfing | Mar 28, 2011 | |
| Thomas Templier | Mar 30, 2011 | |
| Torsten Rohlfing | Mar 30, 2011 | |
| Thomas Templier | Apr 4, 2011 | |
| Torsten Rohlfing | Apr 4, 2011 | |
| Thomas Templier | Apr 4, 2011 | |
| Thomas Templier | May 4, 2011 | |
| Greg Jefferis | May 4, 2011 | |
| Torsten Rohlfing | Mar 23, 2011 | |
| Thomas Templier | Mar 24, 2011 | |
| Torsten Rohlfing | Mar 24, 2011 | |
| Thomas Templier | Mar 25, 2011 | |
| Torsten Rohlfing | Mar 25, 2011 | |
| Thomas Templier | Mar 27, 2011 | |
| Torsten Rohlfing | Mar 27, 2011 | |
| Torsten Rohlfing | Mar 25, 2011 | |
| Greg Jefferis | Mar 25, 2011 | |
| Greg Jefferis | Mar 24, 2011 | |
| Torsten Rohlfing | Mar 23, 2011 | |
