trafo | file / read export() point() debug cube() resamplecube inspect noAffine noNonRigid invert
.trf
-file, containing steering
information,
i.e. the type of transformation and the number of states.
At the time of this writing, the following transformations are supported:
.trf
-file must be given.
The contents of this file determines the type of transformation
and thus the names of the additional files to be read.
These files contain the actual transformation specifications.
The naming convention for these additional files is:
<file>_<fromstate>_<tostate>.<trafo>
,
<fromstate>,<tostate>
are the state numbers,
derived from the respective entries in the .trf
-file,
<trafo>
may be .aff
, .dof
, and .scr
, respectively
x,y,z
),
from a state, SrcState
, to another one, DstState
, provided a
transformation is loaded.
Please keep in mind the specifications of the loaded transformation.
Dependent on the type of transformation,
the result is unpredictable if the source coordinates are
outside the transformation range.
InCube
, to an outpute cube, OutCube
,
with new numbers of voxels, nx,ny,nz
in the respective
directions. The sampling algorithm
number must be given,
although currently only one (=0) is actually implemented.
trafo DeformationFields /read trafo /point(130, 124, 25, 2, 1) trafo /cube(Source.ctx,Destination.ctx, 2, 1) trafo /cube(Source.ctx,DstSCR.ctx, 2, 1) /invert /noAffine /noNonRigidReads transformation steering file
DeformationFields.trf
and subsequent state files (mandatory).
130,124,25
from state 2 to state 1 and outputs the result.
Source.ctx
to cube Destination.ctx
,
from state 2 to state 1.
trafo scr /read trafo /cube(Src.ctx,DstSCR.ctx, 2, 1) /invert /noAffine /noNonRigidReads transformation steering file
scr.trf
and subsequent state files (we assume an SCR transformation here).
Src.ctx
to cube DstSCR.ctx
,
from state 2 to state 1, using the dedicated SCR parameters.