separate
Purpose:
This program will take a 3-dimensional
image file and convert it into a
series of 2-dimensional image files.
Usage:
separateinput
output
overwrite?(y/n)
- where the following definitions apply:
- input
- name of the input image file (.hdr or .img suffix optional)
- output
- prefix name of the output image files (.hdr or .img suffix
optional)
- overwrite?(y/n)
- the letter 'y' if you want to allow a preexisting file with
the nameoutput (plus the three digit numerical
suffix) to be overwritten
Examples:
separate pet petslice y
- If the file pet.img contains 63 planes of data, this command
will create 63 output files (each with .hdr and .img suffixes)
starting with petslice001.img and ending with petslice063.img.
Each output file will contain one plane of data.
Comments:
- Each resulting output file will have the same x and y
dimensions as the input file and a z dimension of one. The voxel
sizes will be unchanged from the input file.
- A three digit number will be appended to the output file name,
starting with 001. This program should not be used for files with
more than 999 planes of data.
Error messages: (alphabetical)
See also: Generic error messages
- Sorry, program must be modified for z-dimensions greater
than 999
- The modifications to allow 9999 planes are marked in the
source code (separate.c)
- Use scanheader to check the
file's z-dimension if you don't think that there are more than
999 planes.
See also:
Modified: December 11, 1996
© 1995-6 Roger P. Woods,
M.D.(rwoods@ucla.edu)