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


Comments:


Error messages: (alphabetical by case)

See also: Generic error messages

A positive number must follow -s
  • self-explanatory
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
  • self-explanatory
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
  • self explanatory
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)