reslice_warp
Purpose:
This is the program that takes
.warp files and uses the
information that they contain to load the corresponding
image file and generate a new,
realigned file.
Usage:
reslice_warp .warp-file
output
[options]
options:
- where the following definitions apply:
-
-
- .warp-file
- name of the .warp file containing the nonlinear
transformation parameters
- output
- name of the output image file (.hdr or .img suffix
optional)
-
alternate-reslice-file
- name of an alternate reslice file that is spatially
equivalent (same voxel sizes and dimensions) to the default
reslice file specified in the .air-file
- intensity-scale-factor
- multiplicative intensity rescaling factor
- model
- one of the following should be selected:
- 0. nearest neighbor
- 1. trilinear
- 2. windowed sinc in original xy plane, linear along z
- 3. windowed sinc in original xz plane. linear along y
- 4. windowed sinc in original yz plane, linear along x
- 5. 3D windowed sinc
- x-half-windown width,
y-half-window width, z-half-window-width
- The half-window widths which should only be supplied for
windowed sinc interpolation models. Models 2-4 require two
half-window widths. Model 5 requires three half-window widths.
- NOTE:
- Unlike reslice, this program does
not interpolate output to create cubic voxels.
Examples:
reslice_warp mri.warpatlas newmri -o
- The reslice file identified in mri.warpatlas will be resampled
based on the nonlinear spatial transformation parameters in
mri.warpatlas. The newly created file will be called newmri.img
and will overwrite any existing file with that name.
Comments:
- Trilinear interpolation is the default interpolation method
for this program.
- The half window widths for sinc interpolation control the
number of surrounding voxels that contribute to the interpolated
value along each axis of the reslice file. A half-window width of
1 results in interpolation along that axis that only includes the
nearest neighbor on either side and a half-window width of 6 will
include the six nearest neighboring voxels in either direction.
The total number of voxel included for standard 3D sinc
interpolation is therefore
8*(x_half_window_width)*(y_half_window_width*(z_half_window_width).
The larger the half windows,the more closely the interpolation
will match true sinc interpolation, but also the slower the
resampling process.
- If you have registered data using edited versions of files but
then reslice unedited versions, you may see bizarre reduplications
of data outside the brain. This is due to the fact that the
nonlinear transformation can cause the reslice file to bend back
on itself or create mirror image ghosts. In theory this can even
happen within the brain, but you should not typically encounter
this unless you have ignored advice about use of the program
align_warp.
- Windowing of sinc interpolation is implemented using a Hanning
window function exactly as described by Hajnal JV, Saeed N, Soar
EJ, Oatridge A, Young IR, Bydder GM. Journal of Computer Assisted
Tomography 1995:19:289-296.
Error messages: (alphabetical by
case)
See also: Generic error messages
- A positive number must follow -s
- A valid interpolation model number must follow -n
- provide a number from the menu
- Argument that follows -s cannot start with - ; it must
be a positive number
- File '____' not created because of matrix size
incompatibility
- The reslice file matrix dimensions don't match those stored
in the .air file.
- Your .air file has gotten associated inappropriately with a
different reslice file.
- The programs scan_warp, and
identify may help you sort it all
out.
- File '____' not created because of voxel size
discrepancy
- The reslice file voxel sizes don't match those stored in
the .air file
- Your .air file is inappropriately associated with an
incorrect reslice file
- The programs scan_warp, and
identify may help you sort it all
out.
- Interpolation windows cannot be negative
- Sorry, flag -____ is not defined for this program
- self explanatory, note that this program does not include
all of the options found in reslice
See also:
Modified:
October 25, 1997
© 1995-97 Roger P. Woods,
M.D.(rwoods@ucla.edu)