resize
This program will alter the matrix size of a file (larger or smaller) and/or shift the
file's origin by an integer number of voxels. Voxels in the new file that were outside the
matrix of the input file are set to zero. No interpolation is required or allowed.
resize
input
new-x-dim
new-y-dim
new-z-dim
x-shift
y-shift
z-shift
output
[overwrite-permission(y/n)]
[.air-file-name]
- where the following definitions apply:
-
- input
- name of the input file
- new-x-dim
- the x dimension of the output file in voxels
- new-y-dim
- the y dimension of the output file in voxels
- new-z-dim
- the z dimension of the output file in voxels
- x-shift
- the number of voxels to shift the origin along the x-axis
- y-shift
- the number of voxels to shift the origin along the y-axis
- z-shift
- the number of voxels to shift the origin along the z-axis
- output
- the name of the output file
- overwrite-permission(y/n)
- 'y' grants permission to overwrite output
- .air-file-name
- name of optional .air file to be created
resize mri1 100 100 10 0 0 0 newmri1 y
- File mri1.img will be resized to matrix dimensions 100 by 100 by 10. The origin of
the new file will be exactly the same as the origin of the old file.
- The origin refers to the internal coordinate system
used by the AIR package
- If you create an optional .air file, the program
reslice can use it (with the -k option) to generate the same
image file output as that created by this program. This .air file can also be used with
combine_air to propagate registrations based on the
resized file back into the original data set.
See also: Generic error messages
- new_x_dim must be a positive integer
-
- provide a positive integer
- new_y_dim must be a positive integer
-
- provide a positive integer
- new_z_dim must be a positive integer
-
- provide a positive integer
- x_shift must be an integer
-
- y_shift must be an integer
-
- z_shift must be an integer
-
Modified: December 17, 2001
© 2001 Roger P. Woods, M.D.(rwoods@ucla.edu)