~ubuntu-branches/ubuntu/precise/insighttoolkit/precise

« back to all changes in this revision

Viewing changes to Utilities/nifti/fsliolib/dbh.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2008-05-31 12:07:29 UTC
  • mfrom: (3.1.3 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080531120729-7g7layn480le43ko
Tags: 3.6.0-3
* debian/patches/gccxml-workaround.patch: New.  Work around gccxml issue
  with #include_next; c.f. http://www.gccxml.org/Bug/view.php?id=7134.  
* debian/patches/gcc43.patch: include <cstring> in itkNeighbourhood.h.
  This only showed up in the tcl wrapping step.

* Above two entries fix FTBFS for GCC 4.3-based systems.
  Closes: #478500.

* debian/patches/sharedforward.patch: New.  Ensure that linux/sparc
  systems are not also configured as a SUN sparc system, which requires
  SUN header sys/isa_defs.h.  Closes: #478940, #483312.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _DBH_H_
 
2
#define _DBH_H_
 
3
 
 
4
/*
 
5
 * 
 
6
 * (c) Copyright, 1986-1994
 
7
 * Biomedical Imaging Resource
 
8
 * Mayo Foundation
 
9
 *
 
10
 * dbh.h
 
11
 *
 
12
 *
 
13
 * database sub-definitions
 
14
 */
 
15
 
 
16
struct header_key                       /*      header_key       */
 
17
    {                                           /* off + size*/
 
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    */
 
25
    };                                          /* total=40  */
 
26
 
 
27
struct image_dimension                  /*      image_dimension  */
 
28
    {                                           /* off + size*/
 
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   */
 
37
                        /* 
 
38
                                pixdim[] specifies the voxel dimensions:
 
39
                                pixdim[1] - voxel width
 
40
                                pixdim[2] - voxel height
 
41
                                pixdim[3] - interslice distance
 
42
                                        ..etc
 
43
                        */
 
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   */
 
53
    };                                          /* total=108 */
 
54
         
 
55
struct data_history                     /*      data_history     */
 
56
    {                                           /* off + size*/
 
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   */
 
73
    };                                          /* total=200 */
 
74
 
 
75
struct dsr                              /*      dsr              */
 
76
    {                                           /* off + size*/
 
77
        struct header_key hk;                   /* 0 + 40    */
 
78
        struct image_dimension dime;            /* 40 + 108  */
 
79
        struct data_history hist;               /* 148 + 200 */
 
80
    };                                          /* total=348 */
 
81
        
 
82
/* Acceptable values for hdr.dime.datatype */
 
83
 
 
84
#define DT_NONE                         0
 
85
#define DT_UNKNOWN                      0
 
86
#define DT_BINARY                       1
 
87
#define DT_UNSIGNED_CHAR                2
 
88
#define DT_SIGNED_SHORT                 4
 
89
#define DT_SIGNED_INT                   8
 
90
#define DT_FLOAT                        16
 
91
#define DT_COMPLEX                      32
 
92
#define DT_DOUBLE                       64
 
93
#define DT_RGB                          128
 
94
#define DT_ALL                          255
 
95
 
 
96
typedef struct 
 
97
        {
 
98
        float real;
 
99
        float imag;
 
100
        } COMPLEX;
 
101
 
 
102
#endif