users
users > RE: landmarks, subsampling and .xform data
Jan 8, 2013 05:01 PM | Torsten Rohlfing
RE: landmarks, subsampling and .xform data
Hi Ruben:
There isn't an online resource per se for each tool's syntax, but virtually all of CMTK's command line tools (not currently shell scripts, but that is in the works) support multiple ways of getting on-the-fly command line help. Simply run the tool with either "--help" option (for simple help text), "--man" (for man page-style documentation; pipe through nroff etc.), "--wiki" (for MediaWiki-style documentation). Note that "--help" will by default exclude "advanced" options to keep things simple. To get the complete list of all supported options, use "--help-all" instead.
Regarding fractional affine transformations - no, sorry, there is no such thing. You can "fake" it rather easily, though - the standard file format for affine transformations in CMTK lists canonical transformation parameters, i.e., translation, rotation angles, scale factors, and shear coefficients, in a human-readable format. You can read such a file and simply compute the fractional parameters yourself, then write the result in a new transformation file in the same, straight-forward format.
Note that this is not truly a fractional transformation, though, in the sense that if you take 1/2 of each parameter, you will not get a transformation that, when concatenated with itself, gives you the original transformation. That is, you would not get the "square root" affine matrix using fractional 0.5. To do that kind of thing, especially for other fractional values, would require some more involved matrix algebra, and that isn't even supported by the back-end library at this point.
Best,
Torsten
Originally posted by Ruben Portugues:
There isn't an online resource per se for each tool's syntax, but virtually all of CMTK's command line tools (not currently shell scripts, but that is in the works) support multiple ways of getting on-the-fly command line help. Simply run the tool with either "--help" option (for simple help text), "--man" (for man page-style documentation; pipe through nroff etc.), "--wiki" (for MediaWiki-style documentation). Note that "--help" will by default exclude "advanced" options to keep things simple. To get the complete list of all supported options, use "--help-all" instead.
Regarding fractional affine transformations - no, sorry, there is no such thing. You can "fake" it rather easily, though - the standard file format for affine transformations in CMTK lists canonical transformation parameters, i.e., translation, rotation angles, scale factors, and shear coefficients, in a human-readable format. You can read such a file and simply compute the fractional parameters yourself, then write the result in a new transformation file in the same, straight-forward format.
Note that this is not truly a fractional transformation, though, in the sense that if you take 1/2 of each parameter, you will not get a transformation that, when concatenated with itself, gives you the original transformation. That is, you would not get the "square root" affine matrix using fractional 0.5. To do that kind of thing, especially for other fractional values, would require some more involved matrix algebra, and that isn't even supported by the back-end library at this point.
Best,
Torsten
Originally posted by Ruben Portugues:
Hi Torsten,
as always, thanks. I finally got to try the convert_warp tool and after some trial and error I think I got the syntax right and it is working (btw is there an online resource where I can look up such things as the correct syntax when calling a function?). Is there a similar tool to perform a fractional affine transformation?
Thank you.
Ruben
as always, thanks. I finally got to try the convert_warp tool and after some trial and error I think I got the syntax right and it is working (btw is there an online resource where I can look up such things as the correct syntax when calling a function?). Is there a similar tool to perform a fractional affine transformation?
Thank you.
Ruben
Threaded View
| Title | Author | Date |
|---|---|---|
| Ruben Portugues | Dec 17, 2012 | |
| Torsten Rohlfing | Dec 17, 2012 | |
| Ruben Portugues | Jan 8, 2013 | |
| Torsten Rohlfing | Jan 8, 2013 | |
| Ruben Portugues | Jan 8, 2013 | |
| Torsten Rohlfing | Jan 8, 2013 | |
| Torsten Rohlfing | Jan 9, 2013 | |
| Ruben Portugues | Jan 9, 2013 | |
| Torsten Rohlfing | Jan 9, 2013 | |
| Ruben Portugues | Jan 10, 2013 | |
| Torsten Rohlfing | Jan 10, 2013 | |
| Ruben Portugues | Jan 10, 2013 | |
| Torsten Rohlfing | Jan 10, 2013 | |
| Ruben Portugues | Jan 10, 2013 | |
| Torsten Rohlfing | Jan 10, 2013 | |
| Ruben Portugues | Jan 10, 2013 | |
| Torsten Rohlfing | Jan 10, 2013 | |
| Ruben Portugues | Jan 10, 2013 | |
| Torsten Rohlfing | Jan 10, 2013 | |
| Ruben Portugues | Jan 10, 2013 | |
| Torsten Rohlfing | Jan 10, 2013 | |
| Ruben Portugues | Jan 11, 2013 | |
| Torsten Rohlfing | Jan 11, 2013 | |
| Ruben Portugues | Jan 11, 2013 | |
| Torsten Rohlfing | Jan 11, 2013 | |
| Ruben Portugues | Jan 11, 2013 | |
| Torsten Rohlfing | Jan 11, 2013 | |
| Ruben Portugues | Jan 12, 2013 | |
| Ruben Portugues | Jan 8, 2013 | |
