6
* (c) Copyright, 1986-1994
7
* Biomedical Imaging Resource
13
* database sub-definitions
16
struct header_key /* header_key */
18
int sizeof_hdr; /* 0 + 4 */
19
char data_type[10]; /* 4 + 10 */
20
char db_name[18]; /* 14 + 18 */
21
int extents; /* 32 + 4 */
22
short int session_error; /* 36 + 2 */
23
char regular; /* 38 + 1 */
24
char hkey_un0; /* 39 + 1 */
27
struct image_dimension /* image_dimension */
29
short int dim[8]; /* 0 + 16 */
30
char vox_units[4]; /* 16 + 4 */
31
char cal_units[8]; /* 20 + 4 */
32
short int unused1; /* 24 + 2 */
33
short int datatype; /* 30 + 2 */
34
short int bitpix; /* 32 + 2 */
35
short int dim_un0; /* 34 + 2 */
36
float pixdim[8]; /* 36 + 32 */
38
pixdim[] specifies the voxel dimensions:
39
pixdim[1] - voxel width
40
pixdim[2] - voxel height
41
pixdim[3] - interslice distance
44
float vox_offset; /* 68 + 4 */
45
float funused1; /* 72 + 4 */
46
float funused2; /* 76 + 4 */
47
float funused3; /* 80 + 4 */
48
float cal_max; /* 84 + 4 */
49
float cal_min; /* 88 + 4 */
50
int compressed; /* 92 + 4 */
51
int verified; /* 96 + 4 */
52
int glmax, glmin; /* 100 + 8 */
55
struct data_history /* data_history */
57
char descrip[80]; /* 0 + 80 */
58
char aux_file[24]; /* 80 + 24 */
59
char orient; /* 104 + 1 */
60
char originator[10]; /* 105 + 10 */
61
char generated[10]; /* 115 + 10 */
62
char scannum[10]; /* 125 + 10 */
63
char patient_id[10]; /* 135 + 10 */
64
char exp_date[10]; /* 145 + 10 */
65
char exp_time[10]; /* 155 + 10 */
66
char hist_un0[3]; /* 165 + 3 */
67
int views; /* 168 + 4 */
68
int vols_added; /* 172 + 4 */
69
int start_field; /* 176 + 4 */
70
int field_skip; /* 180 + 4 */
71
int omax,omin; /* 184 + 8 */
72
int smax,smin; /* 192 + 8 */
77
struct header_key hk; /* 0 + 40 */
78
struct image_dimension dime; /* 40 + 108 */
79
struct data_history hist; /* 148 + 200 */
82
/* Acceptable values for hdr.dime.datatype */
87
#define DT_UNSIGNED_CHAR 2
88
#define DT_SIGNED_SHORT 4
89
#define DT_SIGNED_INT 8