scanair
Purpose:
This program will display all of the information stored in a
.air file
Usage:
scanairfilename
[options]
options:
-
where the following definitions apply:
-
- filename
- name of the .air file
- Real world transformation matrix in
millimeters
- when the -r option is selected, the transformation matrix
is adjusted so that it will operate on real world locations
rather than voxel locations. The center of the first voxel in
each file has coordinates (0,0,0) and units of millimeters (or
whatever units you use to define voxel sizes in your headers)
will be used to represent the coordinates of all other
locations. This is the display method of choice when
analyzing .air files to determine whether they represent real
world rigid-body transformations.
- Voxel based transformation matrix
- when the -v option is selected, the transformation matrix
is adjusted so that it will operate on uninterpolated voxel
locations in each file (i.e., it displays the matrix used for
reslicing when the default to interpolate the reslice file to
cubic voxel is overridden.
Examples:
scanair pet1.airself
standard file: pet1
identifier: 1732056451
file dimensions: 128 by 128 by 15 pixels (x,y,z)
voxel dimensions: 1.745000e+00 by 1.745000e+00 by 6.750000e+00 (x,y,z)
reslice file: pet1
identifier: 1732056451
file dimensions: 128 by 128 by 15 pixels (x,y,z)
voxel dimensions: 1.745000e+00 by 1.745000e+00 by 6.750000e+00 (x,y,z)
E=
[1.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
0.000000e+00 1.000000e+00 0.000000e+00 0.000000e+00
0.000000e+00 0.000000e+00 2.585185e-01 0.000000e+00
0.000000e+00 0.000000e+00 0.000000e+00 1.000000e+00]
where E*standard coordinates=reslice coordinates
Comment: alignpettopet t=(55 55) sf=(81 1 3) prec=0.0050 its=300 zm=1 pts=1 inpl=0
- The .air file pet.airself was generated using
alignpettopet (as indicated in
the comment line at the end of the listing). The file pet1 was
used both as the reslice file and as the standard file in order to
illustrate the output generated by two files that are perfectly
aligned to one another.
- The identifiers are based upon the same data hashing procedure
used by the program identify which can
be used to verify that the file pet1 has not been replaced by
another file since this .air file was derived.
- The term 2.585185e-01 in this example is not an
error. This term is not 1.000000e+00 because the
parameters in an .air file are
defined such that the reslice
file will match a version of the standard file that has been
interpolated to cubic voxels. The
value .2585185=6.75/1.745 makes the adjustment necessary for
matching the interpolated file.
Comments:
- The 4x4 matrix E is a homogenous
coordinate transformation matrix.
- If the standard file coordinates are represented by the 4x1
homogenous coordinate vector:
[x y z 1]
and the reslice file coordinates by the 4x1 vector:
[x' y' z' 1]
then the reslice file coordinates can be computed by performing
the matrix multiplication of E*(standard file coordinates) and
then dividing each element of the result by the fourth element. In
other words, E*(standard file coordinates)=
[x'r y'r z'r
r]
Where r is an arbitrary value. Note that these coordinates are
in the internal coordinate system
used by the AIR package and may not correspond in a
straightforward way to coordinates generated by your image display
package. Also note that the coordinate (0,0,0) represents one
extreme corner of the data (all files must have a voxel with this
coordinate location) and that negative coordinates fall outside
the file's matrix.
- The contents of the comment line will vary according to the
program that generated the .air file. The first item in the
comment line will generally be the name of the program that
generated the .air file.
Error messages: (alphabetical)
See also: Generic error
messages
See also:
Modified: December 11, 1996
© 1995-6 Roger P. Woods,
M.D.(rwoods@ucla.edu)