The following types of files are utilized in the AIR package:
The AIR package utilizes separate header and image files. The
header file contains all of the information necessary to interpret
the data in the image file. At present, the default header format for
the AIR package is compatible with the ANALYZE header format from the
Mayo Clinic. All
default header files must end with the suffix .hdr and a
corresponding image file with the suffix .img is
expected to exist. The image files contain pixel values without any
associated header information. If you can get your data into raw
format (i.e., data only, without any header information), the AIR
package provides all of the utilities needed to create the
corresponding header files.
The following pieces of information are stored in the header files
and are used by the AIR package:
The units for the image voxel sizes are not specified in the AIR
package (millimeters are recommended), and identical units must be
used for all three dimensions.
If voxel sizes have to be rounded-off, the smallest voxel size should
be rounded downwards and the other voxel sizes rounded upwards to
assure that interpolation to cubic
voxels will generate the correct number of planes.
The default header currently contains space to store additional
information, but storage and maintenance of such information is not
supported by the AIR package.
A C programmer can modify the air package to read and write other
data file types, including files that combine header and image
information into a single file, but this is a significant
undertaking.
You can create a header file using
makeaheader, review the information in
a header file using scanheader, modify
the header voxel sizes with fixheader,
and adjust the header global maximum with
setheadermax.
When creating a new header, you must provide all of the information
that will be contained in the header. In order to properly specify
the image matrix dimensions, the voxel dimensions, and the number of
bits per pixel, you must know how data is represented in your image
file. There are two major considerations:
The AIR package utilizes separate header and image files. Image
files end with the suffix '.img'. A single image file contains all of
the data for the entire three dimensional volume stored row after
row, plane after plane. The image file consists of "raw" voxel
intensity values (8 bit and
16 bit images are supported) that are
stored sequentially. No other information is contained in the .img
file.
The image file's voxel order is defined as
follows:
Please note that your image display package may define the
dimensions differently. In addition, note that the
internal coordinate system used for
indexing the voxels once they are loaded into the AIR package may
differ substantially from the coordinate system used by your image
display package.
Many programs in the AIR package will
generate new image files.
Linear spatial transformations in AIR are stored in the form of .air files.
.air files are created and used by the AIR package and contain the following pieces of information:
The contents of a .air file can be display using
scanair.
A number of programs in the AIR package
will create or
modify .air files.
Nonlinear spatial transformations in AIR are stored in the form of .warp files.
.warp files are created and used by the AIR package and contain the following pieces of information:
The contents of a .warp file can be display using
scan_warp
A number of programs in the AIR package
will create or
modify .warp files.
Initialization files are used to override the default
center-of-file to center-of-file, no rotation or rescaling
initialization used by the automated alignment programs. These are
ASCII files and their contents may vary for different automated
alignment programs. For rigid-body, global rescaling, and traditional
9 parameter Talairach models, initialization files can be created by
manualreslice. The format of
initialization files for other models are described with each
model.
Modified: February 10, 1997