makeaheader


Purpose:

This program will generate a header (.hdr file) based upon information that you provide.


Usage:

makeaheader filename filetype x-dim y-dim z-dim x-size y-size z-size

File types (just use the corresponding number):

where the following definitions apply:
filename
the name of the header file to be created
filetype
a number from the following list:
  • 0--8 bits/pixel (values 0 to 255)
  • 1--16 bits/pixel unsigned short ints (values 0 to 65535)
  • 2--16 bits/pixel short ints (values 0 to 32767)
  • 3--16 bits/pixel short ints (values -32767 to 32767)
x-dim
the x dimension of the image file in pixels
y-dim
the y dimension of the image file in pixels
z-dim
the z dimension of the image file in pixels
x-size
the x size of voxels in the image file
y-size
the y size of voxels in the image file
z-size
the z size of voxels in the image file

Examples:

makeaheader mri 2 256 256 140 1.0 1.0 1.5

Comments:


Error messages: (alphabetical by case)

See also: Generic error messages
filetype must be 0, 1, 2 or 3
x_dim must be a positive integer
x_size must be a positive number
y_dim must be a positive integer
y_size must be a positive number
z_dim must be a positive integer
z_size must be a positive number

See also:


Modified: July 22, 2002
© 2001-2002   Roger P. Woods, M.D.(rwoods@ucla.edu)