1M-ANLZ(4)                  Kernel Interfaces Manual                  M-ANLZ(4)
2
3
4

NAME

6       m-anlz - Analyze (SPM) medical image format (MedCon)
7

DESCRIPTION

9  This is a very simple format. The basic headers are written in one file with
10  extension `.hdr', the image data in another file with extension `.img'.
11
12  The basic defines for the format:
13
14  ---------------------------------------------------------------------------
15
16  typedef struct Header_Key_t{
17          Int32  sizeof_hdr;               /* 348 or 148                 */
18          char data_type[10];              /* "dsr"                      */
19          char db_name[18];                /* filename without extension */
20          Int32 extents;                   /* 16384                      */
21          Int16 session_error;
22          char regular;                    /* 'r'                        */
23          char hkey_un0;
24  } MDC_ANLZ_HEADER_KEY;
25
26  #define MDC_ANLZ_HK_SIZE 40
27
28  typedef struct Image_Dimensions_t{
29          Int16 dim[8];                    /* [0] = # of dimensions      */
30                                           /* [1] = X-dim                */
31                                           /* [2] = Y-dim                */
32                                           /* [3] = Z-dim                */
33                                           /* [4] = t-dim                */
34                                           /* ...                        */
35          Int16 unused[7];
36          Int16 datatype;                  /* pixel type                 */
37                                           /*  0 = Unknown   1 = one-bit */
38                                           /*  2 = Uint8     4 = Int16   */
39                                           /*  8 = Int32    16 = float   */
40                                           /* 32 = complex  64 = double  */
41                                           /*128 = RGB     255 = all     */
42
43          Int16 bitpix;                    /* bits per pixel             */
44          Int16 dim_un0;
45          float pixdim[8];                 /* [0] = # of dimensions      */
46                                           /* [1] = X-dim (mm)           */
47                                           /* [2] = Y-dim (mm)           */
48                                           /* [3] = Z-dim (mm)           */
49                                           /* [4] = t-dim (ms)           */
50                                           /* ...                        */
51          float funused[6];
52          float compressed;
53          float verified;
54          Int32 glmax,glmin;
55  } MDC_ANLZ_IMAGE_DIMS;
56
57  #define MDC_ANLZ_IMD_SIZE 108
58
59  typedef struct Data_History_t{
60          char descrip[80];
61          char aux_file[24];
62          char orient;                     /* patient orientation        */
63                                           /* 0 = transverse unflipped   */
64                                           /* 1 = coronal unflipped      */
65                                           /* 2 = sagittal unflipped     */
66                                           /* 3 = transverse flipped     */
67                                           /* 4 = coronal flipped        */
68                                           /* 5 = sagittal flipped       */
69
70          char originator[10];
71          char generated[10];
72          char scannum[10];
73          char patient_id[10];
74          char exp_date[10];
75          char exp_time[10];
76          char hist_un0[3];
77          Int32 views;
78          Int32 vols_added;
79          Int32 start_field;
80          Int32 field_skip;
81          Int32 omax, omin;
82          Int32 smax, smin;
83  } MDC_ANLZ_DATA_HIST;
84
85  #define MDC_ANLZ_DH_SIZE 200
86
87  ---------------------------------------------------------------------------
88
89  The structures are defined in the order as they should be found in the file.
90  The Data_History header is not obliged. The SPM Analyze format, intended for
91  the SPM software, differs a little from the normal Analyze format.
92
93  What does the format support or not support:
94
95  ===========================================================================
96  Item            Supported                             Not Supported
97  ===========================================================================
98  Color Map     : grayscale                                   -
99  File Endian   : little & big                                -
100  Pixeltypes    : 1-bit, Uint8, Int16, Int32           Int8,Uint16,Uint32
101                  float, double, (complex)               Int64,Uint64
102  ===========================================================================
103  Scaling factors  : quantify & calibrate factors/image  are NOT supported
104  ---------------------------------------------------------------------------
105  Dimensions/Image : different dimensions for each image are NOT supported
106  ---------------------------------------------------------------------------
107  Pixeltypes/Image : different pixeltypes for each image are NOT supported
108  ---------------------------------------------------------------------------
109  SPM remarks      : 1) imd.funused[0] = the offset
110                     2) imd.funused[1] = one global scaling factor
111                     3) (Int16)dh.originator[0...1] \
112                        (Int16)dh.originator[2...3]  } =  origin (X, Y, Z)
113                        (Int16)dh.originator[4...5] /
114  ===========================================================================
115

NOTES

117  A note about the image (patient) orientation in SPM:
118
119       X-axis
120            increases from leftside  (hand) to rightside (hand).
121
122       Y-axis
123            increases from posterior (back) to anterior  (front).
124
125       Z-axis
126            increases from inferior  (feet) to superior  (head).
127

FILES

129  /usr/local/xmedcon/source/m-anlz.h      The header file.
130  /usr/local/xmedcon/source/m-anlz.c      The source file.
131

SEE ALSO

133  medcon(1), xmedcon(1), xmedcon-config(1)
134
135  m-acr(4), m-gif(4), m-inw(4), m-intf(4), m-ecat(4)
136
137  medcon(3)
138

AUTHOR

140  (X)MedCon project was originally written by Erik Nolf (eNlf) for the  former
141  PET-Centre at Ghent University (Belgium).
142
143  e-mail:   enlf-at-users.sourceforge.net   www:   http://xmedcon.sourceforge.net
144
145
146
147
148                                                                     M-ANLZ(4)
Impressum