users
users > RE: File format and registration problem
Mar 24, 2011 02:03 PM | Thomas Templier
RE: File format and registration problem
Dear Torsten,
thank you for your quick answer. I still have a problem :
I'm now using the command
I'm trying to use ConvertBetweenFileFormats tool from ITK's companion "InsightApplications", but for the moment I've some problems to handle it. (my helloworld does not work) Should I try an other format than nrrd ? The tif converter from ImageJ is the only one I've found that can export in a file readable from CMTK.
Has somebody an idea ?
Thank you
Thomas
Originally posted by Torsten Rohlfing:
thank you for your quick answer. I still have a problem :
I'm now using the command
registration --initxlate --dofs 6,9
--auto-multi-levels 4 -o affine.xform ref.nrrd flt.nrrd
where ref.nrrd and flt.nrrd are 3D confocal image stacks that have
been converted with ImageJ from ref.tif and flt.tif. I get :WARNING: image does not have valid
orientation meta information;cannot reorient.
WARNING: image does not have valid orientation meta information;cannot reorient.
Multi-level Registration: 100%
ref.tif and flt.tif are 16-bit images. I don't get any affine.xform
file.WARNING: image does not have valid orientation meta information;cannot reorient.
Multi-level Registration: 100%
I'm trying to use ConvertBetweenFileFormats tool from ITK's companion "InsightApplications", but for the moment I've some problems to handle it. (my helloworld does not work) Should I try an other format than nrrd ? The tif converter from ImageJ is the only one I've found that can export in a file readable from CMTK.
Has somebody an idea ?
Thank you
Thomas
Originally posted by Torsten Rohlfing:
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 | |
