crop
This program crops empty planes from all edges of an image
crop
input
pad
output
[overwrite?(y/n)]
[.air-file-name]
- where the following definitions apply:
-
- input
- the name of the file to be cropped
- pad
- the number of voxels of padding to add back after cropping (more won't be
added than was cropped).
- output
- the name of the output file
- overwrite?(y/n)
- 'y' grants permission to overwrite output
- .air-file-name
- the name of a .air file that will be
created to describe the crop with input as the reslice file and
output as the standard file.
crop editedmri 3 croppedmri y
- excess planes consisting solely of zeros will be cropped from all six edges
of editedmri. Three planes of zeros will be added back (unless less than three planes
were cropped along a given edge, in which case there will be no change at that edge).
The result will be saved as croppedmri.
- Cropping images can help derive better polynomial warps with
.
- It is a generally a good idea to take advantage of the option to save a .air file
describing the crop. This will allow you to link back to uncropped data using
combine_air or
combine_warp
- If the file is empty (i.e., if it consists entirely of zeros), it will be left unchanged
See also: Generic error messages
- pad must be a non-negative integer
-
- provide a non-negative integer value
Modified: August 8, 2002
© 2001-2002 Roger P. Woods, M.D.(rwoods@ucla.edu)