00001 #ifndef _DBH_H_
00002 #define _DBH_H_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 struct header_key
00017 {
00018 int sizeof_hdr;
00019 char data_type[10];
00020 char db_name[18];
00021 int extents;
00022 short int session_error;
00023 char regular;
00024 char hkey_un0;
00025 };
00026
00027 struct image_dimension
00028 {
00029 short int dim[8];
00030 char vox_units[4];
00031 char cal_units[8];
00032 short int unused1;
00033 short int datatype;
00034 short int bitpix;
00035 short int dim_un0;
00036 float pixdim[8];
00037
00038
00039
00040
00041
00042
00043
00044 float vox_offset;
00045 float funused1;
00046 float funused2;
00047 float funused3;
00048 float cal_max;
00049 float cal_min;
00050 int compressed;
00051 int verified;
00052 int glmax, glmin;
00053 };
00054
00055 struct data_history
00056 {
00057 char descrip[80];
00058 char aux_file[24];
00059 char orient;
00060 char originator[10];
00061 char generated[10];
00062 char scannum[10];
00063 char patient_id[10];
00064 char exp_date[10];
00065 char exp_time[10];
00066 char hist_un0[3];
00067 int views;
00068 int vols_added;
00069 int start_field;
00070 int field_skip;
00071 int omax,omin;
00072 int smax,smin;
00073 };
00074
00075 struct dsr
00076 {
00077 struct header_key hk;
00078 struct image_dimension dime;
00079 struct data_history hist;
00080 };
00081
00082
00083
00084 #define DT_NONE 0
00085 #define DT_UNKNOWN 0
00086 #define DT_BINARY 1
00087 #define DT_UNSIGNED_CHAR 2
00088 #define DT_SIGNED_SHORT 4
00089 #define DT_SIGNED_INT 8
00090 #define DT_FLOAT 16
00091 #define DT_COMPLEX 32
00092 #define DT_DOUBLE 64
00093 #define DT_RGB 128
00094 #define DT_ALL 255
00095
00096 typedef struct
00097 {
00098 float real;
00099 float imag;
00100 } COMPLEX;
00101
00102 #endif