mirrot - Mirrot, Rotate, and Scroll Analyze images

blue bar

Command line program to perform simple transformations to Analyze images. Multiple transforms may be specified on the command line in which case they are all performed in the order specified. For multi-volume files, the transforms will be applied volume-by-volume.

mirrot [-mx] [-my] [-mz] [-|+rx] [-|+ry] [-|+rz]
       [input_filename [output_filename]]
-mx
Mirrors around the x axis, i.e., flips the image top-to-bottom.
-my
Mirrors around the y axis, i.e., flips the image left-right.
-mz
Mirrors around the z axis, i.e., for multi-slice volumes, reverses the slice order.
-|+rx
Rotates 90 degrees around the x axis. Preceed rx with either a - (indicating a negative rotation) or + (indicating a positive rotation).
-|+ry
Rotates 90 degrees around the y axis. Preceed ry with either a - (indicating a negative rotation) or + (indicating a positive rotation).
-|+rz
Rotates 90 degrees around the z axis, i.e., an in-plane rotation. Preceed rz with either a - (indicating a negative rotation) or + (indicating a positive rotation).
-|+sx[n]
Scrolls the image n pixels along the x-axis. If n is not specified then scroll one pixel. Pixels which scroll off one side of the image are wrapped back round to the other side. Preceed sx with either a - (indicating a negative shift) or + (indicating a positive shift).
-|+sy[n]
Scrolls the image n pixels along the y-axis. If n is not specified then scroll one pixel. Pixels which scroll off one side of the image are wrapped back round to the other side. Preceed sy with either a - (indicating a negative shift) or + (indicating a positive shift).
-|+sz[n]
Scrolls the image n voxels along the z-axis. If n is not specified then scroll one voxel. Voxels which scroll off one side of the volume are wrapped back round to the other side. Preceed sz with either a - (indicating a negative shift) or + (indicating a positive shift).
-d
Displays additional diagnostic output.
input_filename
The filename of the Analyze file to be converted. Filenames may contain either the .img or .hdr extension, or neither. If the input_filename is not specified on the command line then the program will prompt for a filename.
output_filename
If an input_filename has already been specified then the second filename is assumed to be the Analyze file to contain the transformed images. If the output_filename is not specified on the command line then the program will prompt for a filename.