reorient


Purpose:

Rotates image files (.img files) 90 or 180 degrees and/or mirrors them along the major axes. This allows gross prealignment of images so that automated registration has a reasonable chance of success.

This program can also be used as a null operation that converts an input file into the output format used to compile AIR

A .air file describing the transformation can be saved


Usage:

reorient input output [options]

options (note unusual syntax, optional arguments do not start with '-'):
[o]
grants permission to overwrite output
[f output-air-file-name]
saves a .air file describing the transformation with input as the reslice file and output as the standard file
[x]
mirror along x axis
[y]
mirror along y axis
[z]
mirror along z axis
[xy]
rotate +90 degrees to interchange x and y axes
[yx]
rotate -90 degrees to interchange y and x axes
[xz]
rotate +90 degrees to interchange x and z axes
[zx]
rotate -90 degrees to interchange z and x axes
[yz]
rotate +90 degrees to interchange y and z axes
[zy]
rotate -90 degrees to interchange z and y axes
[xx]
rotate 180 degrees around x axis
[yy]
rotate 180 degrees around y axis
[zz]
rotate 180 degrees around z axis
where the following definitions apply:
input
the name of the input file
output
the name of the output file
output-air-file-name
the name of the .air file to save

Examples:

reorient mri.img mri.img o xx yz z reorient 8bitmri 16bitmri reorient foreign16bitmri swapped16bitmri AIR 5.0

Comments:


Error messages: (alphabetical by case)

See also: Generic error messages
A file name for saving the .air file must follow argument 'f'
Cannot parse argument ____
Don't use minus sign (-) with this program
output file cannot be named ____

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