reslice


Purpose:

This program takes a .air file and uses the information that it contains to load the corresponding image file and generate a new, realigned file.


Usage:

reslice .air-file output [options]

options:
[-a alternate-reslice-file]
changes the file to be resliced
[-d divide-by-intensity-scale-factor]
scales output by dividing by specified factor
[-df divide-by-intensity-scale-factor-file]
scales output by dividing by factor specified in file
[-k]
retains the standard file's voxel dimensions (default is to interpolate to cubic voxels)
[-n model {half-window-width(s)}]
changes interpolation model
[-o]
grants permission to overwrite output
[-s multiplicative-intensity-scale-factor]
scales output using specified multiplicative factor
[-sf multiplicative-intensity-scale-factor-file]
scales output using multiplicative factor specified in file
[-x dimension size [shift]]
alters output x-dimension, x-voxel size or causes shift of output along the x-axis
[-y dimension size [shift]]
alters output y-dimension, y-voxel size or causes shift of output along the y-axis
[-z dimension size [shift]]
alters output z-dimension, z-voxel size or causes shift of output along the z-axis
where the following definitions apply:
.air-file [mandatory]
name of the input .air file containing the reslice parameters
alternate-reslice-file [-a]
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
dimension [-x ...] [-y ...] [-z ...]
the new desired dimension (in voxels)
divide-by-intensity-scale-factor [-d]
output intensities are divided by this positive value
divide-by-intensity-scale-factor-file [-df]
output intensities are divided by the value in this ASCII file containing a single positive number
half-window-width [-n...]
half the width of the window (in whole voxels) to apply when doing sinc interpolation
larger values are more accurate, but considerably slower
model [-n...]
the interpolation model number, selected from the menu:
  • 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
  • 6. 3D windowed scanline sinc
  • 7. 3D unwindowed scanline sinc
  • 10. 3D scanline chirp-z
  • 11. scanline chirp-z in original xy plane, linear along z
  • 12. scanline chirp-z in original xz plane, linear along y
  • 13. scanline chirp-z in original yz plane, linear along x
multiplicative-intensity-scale-factor [-s]
output intensities are multiplied by this positive value
multiplicative-intensity-scale-factor-file [-sf]
output intensities are multiplied by the value in this ASCII file containing a single positive number
output [mandatory]
name of the output image file (.hdr or .img suffix optional)
shift [-x ...] [-y ...] [-z ...]
the shift (in voxels) to be applied along this dimension, with positive and negative values causing shifts in opposite directions
size [-x ...] [-y ...] [-z ...]
the new desired voxel size along this dimension (in whatever unit was used for sizes in your image files, usually millimeters)

Examples:

reslice mri.air newmri reslice mri.air newmri -o reslice mri.air newmri -o -k reslice mri.air newmri -o -k -a mri2 reslice mri.air newmri -o -z 43 2.25

Comments:


Error messages: (alphabetical by case)

See also: Generic error messages
-a must be followed by an image file name
-d must be followed by a positive number
-df must be followed by a file name
-k flag cannot be used with the -x, -y or -z flag
-n ____ does not define a valid interpolation model
-n ____ must be followed by three positive integers
-n ____ must be followed by two positive integers
-n must be followed by a valid interpolation model number
-s must be followed by a positive number
-sf must be followed by a file name
-x must be followed by a positive integer and a positive number
-y must be followed by a positive integer and a positive number
-z must be followed by a positive integer and a positive number
Unable to parse ____
Unable to parse argument ____, which was expected to begin with a '-'

See also:


Modified: December 15, 2001
© 2001   Roger P. Woods, M.D.(rwoods@ucla.edu)