users > "reformatx" vs. old "reformat" tool
Showing 1-1 of 1 posts
Display:
Results per page:
Oct 13, 2010  01:10 PM | Torsten Rohlfing - Google LLC
"reformatx" vs. old "reformat" tool
Hi - please see the CMTK User's Guide ;)

In short, reformatx is the "eXtended" reformat tool. Most notably it supports concatenation of arbitrary series of transformations with the option of inverting each one along the line.

The equivalent of your call below is:

reformatx -v --linear --pad-out -o --floating

where each "xform" can optionally be prefixed with "--inverse" to invert it on the fly. (B-spline FFDs are numerically inverted in this case).

So you see you now need to explicitly give the fixed and moving images on the command line, whereas the old tool read them from the transformation directory. This is the price we pay for being able to concatenate transformations and/or invert them.

Hope this makes sense.

TR

PS: please use the CMTK User's Forum on NITRC ;)

On 10/13/2010 01:32 PM, Kilian Pohl wrote:
> Hi Torsten,
>
> After doing the non-rigid warp, I used to call the resampling function the following way
>
> $MathImage(BSplineBinDirectory)/reformat -v -i linear --set-null -o
>
> Dominique and I just downloaded the CMTK version and saw that the command reformat does not exist anymore but only a command with the name reformatx. Can I just execute
>
> reformatx -v -i linear --set-null -o ? If not how do I do that ?
>
> Also , how do I apply the transformation to another data set then the moving image defined in ?
>
> Thanks
>
> Kilian
>
> Ps: What does the x stand for ?
>
>
>
>
>