combine_air
Purpose:
If you have a reslice parameter file
(.air file) that will reslice file
A to match file B and another reslice parameter file that will
reslice file B to match file C, this program will allow you to
compute a reslice parameter file that will directly reslice file A to
match file C (without computing intermediate values in the space
represented by file B). More generally, any continuous chain of
reslice parameter files can be combined into a single step using this
program.
Usage:
combine_airoutput
overwrite?(y/n)
air-file1
air-file2
[...air-fileN]
- where the following definitions apply:
- output
- the name of the .air file to be created
- overwrite?(y/n)
- the letter 'y' if you want to allow a preexisting file with
the nameoutput to be overwritten
- air-fileN
- the names of the input .air files (at least two must be
specified).
- NOTE:
- the reslice_file in each air_file must be spatially equivalent
to standard_file in the air_file that follows it. The resulting
output's standard file will be the same as that in .air-file1 and
its reslice file will the the same as that in .air-fileN.
Examples:
combine_air A.airC n B.airC A.airB
- If file A.airC already exists, the program will not overwrite
the existing file because overwrite permission was not granted
(note that you must specify y or n in all cases).
- If file A.airC does not already exist, it will be created by
combining the other two .air files. If A.airB contains parameters
for reslicing file A to match file B and B.airC contains
parameters for reslicing file B to match file C, the resulting
file A.airC will contain instructions for reslicing file A to
match C.
combine_air A.airE y D.airE C.airD B.airC A.airB
- If file A.airE already exists, it will be overwritten. The
four .air files will be combined to generate a single .air file
for reslicing file A to match file E (assuming that the file
naming conventions in this example are the same as in the
preceding example).
Comments:
- Used correctly, this program provides a powerful mechanism for
aligning images into any arbitrarily chosen space. It can be made
particularly effective if combined with the capabilities of
invert_air and
manualreslice.
- Used incorrectly, this program provides a mechanism for
creating total chaos. If any link in the chain of .air files is
incorrect and escapes the error detection features built into the
program, the resulting .air file will be nonsense.
- It is absolutely critical that the reslice file in each of the
existing .air files be spatially equivalent to the standard file
in the .air file that follows it in the chain. The program checks
for such equivalency directly and also tests whether one of the
pair can be assumed to be equivalent to the other after
interpolation of cubic voxels.
- Note that the program invert_air
can be used if you have a reslice parameter file for aligning two
files in one direction but you need the inverse transformation for
use with this program.
- If you want to combine a .air file with a nonlinear .warp
file, use combine_warp
Error messages: (alphabetical)
See also: Generic error messages
- Cannot combine because matrix dimensions are not
equivalent...
- Cannot combine because sizes are not equivalent...
See also:
Modified: December 11, 1996
© 1995-6 Roger P. Woods,
M.D.(rwoods@ucla.edu)