Download iMagic PRO

Transcript
iMagic PRO User Manual
69
Appendix 8: iMagic surface format
The iMagic surface format defines how the surfaces created with iMagic are stored. The
surfaces are stored in only one binary file with extension .SRX. The file has the
following structure:
BYTES
4
4
NV*4*3
NT*4*3
DATA TYPE
Integer 32 bits
Integer 32 bits
Float 32 bits
Integer 32 bits
DESCRIPTION
Number of vertices (NV)
Number of triangles (NT)
X,Y,Z coordinates for all vertices
Sequence of three indices to constituting vertices of
each triangle
OPTIONAL FROM HERE
2
NTC*4
.
.
.
2
NTC*4
Integer 16 bits
Integer 32 bits
.
.
.
Integer 16 bits
Integer 32 bits
Number of triangles connected to vertex 0 (NTC)
Indices to triangles connected to vertex 0
.
.
.
Number of triangles connected to vertex NV-1 (NTC)
Indices to triangles connected to vertex NV-1
The vertex coordinates are in the same coordinates system of image volumes (see
Appendix 1). All indices are relative to 0.
Appendix 9: iMagic atlas format
The iMagic atlas format is very similar to the image volume format (see Appendix 1).
The atlas has also 2 files with extensions VOX and HDR and the same meaning but
another file is added: a code file which is an ASCII file with extension .COD. Another
difference is that datatype for atlas is always Byte (1 in the 4th field of header).
The COD file will have as many lines as different coded values (voxel values) are present
in the image volume itself. Every line will have the following structure:
<code value> = <description>
where <code value> is the coded value (voxel value) for a particular structure and
<description> is an alphanumeric string of characters describing the structure itself. This
alphanumeric string will appear in the status bar when an atlas is loaded and the mouse is
passed over that structure in the iMagic work sheets (see Open Atlas command).