reorient


Purpose:

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

This program can also be used to convert files to the data type (e.g. 8-bit or 16-bit) specified as the preferred output data type when the AIR package was compiled


Usage:

reorientinput output [options]

options:
  • [o] overwrite permission granted

  • [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
name of the input image file (.hdr or .img suffix optional)
output
name of the output image file (.hdr or .img suffix optional)
NOTE:
This program is unusual in that it does not require (or allow) minus signs before the optional arguments.


Examples:

reorient pet.img pet.img o xx yz z

reorient 16bitmri 8bitmri o


Comments:


Error messages: (alphabetical)

See also: Generic error messages

unable to allocate memory...
  • insufficient RAM is available to create the reoriented image
  • try later when more RAM might be available
  • use scanheader on the original image to make sure the matrix dimensions are correct



See also:


Modified: December 11, 1996

© 1995-96 Roger P. Woods, M.D.(rwoods@ucla.edu)