NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
itkAnalyzeDbh_p.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 /*
19  *
20  * Copyright (c) 1986-2006
21  * Biomedical Imaging Resource
22  * Mayo Clinic
23  *
24  * All rights reserved.
25  *
26  * Redistribution and use in source and binary forms, with or
27  * without modification, are permitted provided that the following
28  * conditions are met:
29  *
30  * 1) Redistributions of source code must retain the above copyright
31  * notice, this list of conditions and the following disclaimer.
32  *
33  * 2) Redistributions in binary form must reproduce the above copyright
34  * notice, this list of conditions and the following disclaimer in the
35  * documentation and/or other materials provided with the distribution.
36  *
37  * Neither the name of the Mayo Clinic nor the names of its
38  * contributors may be used to endorse or promote products derived from
39  * this software without specific prior written permission.
40  *
41  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
42  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
43  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
44  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
45  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
46  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
47  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
48  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
49  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
50  * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
51  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
52  *
53  */
54 
55 
68 #ifndef __itkAnalyzeDbh_h
69 #define __itkAnalyzeDbh_h
70 
71 namespace itk
72 {
88  //Obsolete, using SPM, B2ANALYZE_DT_UNSIGNED_SHORT =6, /**< Deontes that the data type is unsigned short in brains2 analyze extensions*/
89  //Obsolete, using SPM, B2ANALYZE_DT_UNSIGNED_INT =12, /**< Deontes that the data type is unsigned int in brains2 analyze extensions*/
92 };
93 
109  //Obsolete, using SPM, B2ANALYZE_DT_INDEX_UNSIGNED_SHORT=10,
110  //Obsolete, using SPM, B2ANALYZE_DT_INDEX_UNSIGNED_INT =11,
113 };
114 
115 
135 extern const char DataTypes[12][10];
136 
156 extern const short int DataTypeSizes[12];
157 
177 extern const short int DataTypeKey[12];
178 
185 struct header_key /* header_key */
186 {/*off + size*/
187  /*0 + 4 */int sizeof_hdr;
192  /*4 + 10 */char data_type[10];
195  /*14 + 18*/char db_name[18];
197  /*32 + 4 */int extents;
200  /*36 + 2 */short int session_error;
202  /*38 + 1 */char regular;
203  /*39 + 1 */char hkey_un0;
204 };/* total=40 */
213 struct image_dimension /* image_dimension */
214 { /* off + size*/
215  /*0 + 16 */ short int dim[8];
224  /*16 + 4 */ char vox_units[4];
226  /*20 + 4 */ char cal_units[8];
228  /*24 + 2 */ short int unused1;
229  /*30 + 2 */ short int datatype;
233  /*32 + 2 */ short int bitpix;
235  /*34 + 2 */ short int dim_un0;
236  /*36 + 32*/ float pixdim[8];
247  /*68 + 4 */ float vox_offset;
250  /*72 + 4 */ float roi_scale;
255  /*76 + 4 */ float funused1;
256  /*80 + 4 */ float funused2;
257  /*84 + 4 */ float cal_max;
261  /*88 + 4 */ float cal_min;
262  /*92 + 4 */ int compressed;
273  /*96 + 4 */ int verified;
274  /*100 + 4*/ int glmax;
284  /*104 + 4*/ int glmin;
285 }/*total=108 */;
286 
301 struct data_history /* data_history */
302 {/*off + size*/
303  /*0 + 80 */char descrip[80];
304  /*80 + 24 */char aux_file[24];
307  /*104 + 1 */char orient;
350  /*105 + 10*/char originator[10];
351  /*115 + 10*/char generated[10];
352  /*125 + 10*/char scannum[10];
353  /*135 + 10*/char patient_id[10];
354  /*145 + 10*/char exp_date[10];
355  /*155 + 10*/char exp_time[10];
356  /*165 + 3 */char hist_un0[3];
357  /*168 + 4 */int views;
358  /*172 + 4 */int vols_added;
359  /*176 + 4 */int start_field;
360  /*180 + 4 */int field_skip;
361  /*184 + 4 */int omax;
365  /*188 + 4 */int omin;
366  /*192 + 4 */int smax;
367  /*196 + 4 */int smin;
368 };/* total=200 */
369 
384 struct dsr/* dsr */
385 {/* off + size*/
386  /*0 + 40 */ struct header_key hk;
387  /*40 + 108 */ struct image_dimension dime;
388  /*148 + 200*/ struct data_history hist;
389 }/*total=348*/;
390 } //End namespace itk
391 #endif /* __dbh_h__ */
int smin
Definition: itkAnalyzeDbh_p.h:367
const char DataTypes[12][10]
Definition: itkAnalyzeDbh.cxx:24
Definition: itkAnalyzeDbh_p.h:84
char descrip[80]
Definition: itkAnalyzeDbh_p.h:303
Definition: itkAnalyzeDbh_p.h:81
Definition: itkAnalyzeDbh_p.h:101
Definition: itkAnalyzeDbh_p.h:301
Definition: itkAnalyzeDbh_p.h:90
char patient_id[10]
Definition: itkAnalyzeDbh_p.h:353
char hkey_un0
Definition: itkAnalyzeDbh_p.h:203
Definition: itkAnalyzeDbh_p.h:106
int field_skip
Definition: itkAnalyzeDbh_p.h:360
Definition: itkAnalyzeDbh_p.h:82
int sizeof_hdr
Definition: itkAnalyzeDbh_p.h:187
Definition: itkAnalyzeDbh_p.h:86
char data_type[10]
Definition: itkAnalyzeDbh_p.h:192
short int bitpix
Definition: itkAnalyzeDbh_p.h:233
short int dim_un0
Definition: itkAnalyzeDbh_p.h:235
Definition: niftkITKAffineResampleImage.cxx:74
int compressed
Definition: itkAnalyzeDbh_p.h:262
float pixdim[8]
Definition: itkAnalyzeDbh_p.h:236
Definition: itkAnalyzeDbh_p.h:87
Definition: itkAnalyzeDbh_p.h:111
struct data_history hist
Definition: itkAnalyzeDbh_p.h:388
Definition: itkAnalyzeDbh_p.h:79
Definition: itkAnalyzeDbh_p.h:103
Definition: itkAnalyzeDbh_p.h:185
char orient
Definition: itkAnalyzeDbh_p.h:307
Definition: itkAnalyzeDbh_p.h:107
int views
Definition: itkAnalyzeDbh_p.h:357
Definition: itkAnalyzeDbh_p.h:102
Definition: itkAnalyzeDbh_p.h:104
float funused1
Definition: itkAnalyzeDbh_p.h:255
char exp_date[10]
Definition: itkAnalyzeDbh_p.h:354
int glmax
Definition: itkAnalyzeDbh_p.h:274
Definition: itkAnalyzeDbh_p.h:91
char scannum[10]
Definition: itkAnalyzeDbh_p.h:352
int start_field
Definition: itkAnalyzeDbh_p.h:359
Definition: itkAnalyzeDbh_p.h:80
Definition: itkAnalyzeDbh_p.h:112
int verified
Definition: itkAnalyzeDbh_p.h:273
char aux_file[24]
Definition: itkAnalyzeDbh_p.h:304
float roi_scale
Definition: itkAnalyzeDbh_p.h:250
Definition: itkAnalyzeDbh_p.h:108
DataTypeIndex
Definition: itkAnalyzeDbh_p.h:98
Definition: itkAnalyzeDbh_p.h:384
Definition: itkAnalyzeDbh_p.h:85
int vols_added
Definition: itkAnalyzeDbh_p.h:358
char generated[10]
Definition: itkAnalyzeDbh_p.h:351
const short int DataTypeKey[12]
Definition: itkAnalyzeDbh.cxx:35
Definition: itkAnalyzeDbh_p.h:100
float vox_offset
Definition: itkAnalyzeDbh_p.h:247
short int unused1
Definition: itkAnalyzeDbh_p.h:228
char exp_time[10]
Definition: itkAnalyzeDbh_p.h:355
char regular
Definition: itkAnalyzeDbh_p.h:202
float cal_min
Definition: itkAnalyzeDbh_p.h:261
int smax
Definition: itkAnalyzeDbh_p.h:366
char db_name[18]
Definition: itkAnalyzeDbh_p.h:195
int omax
Definition: itkAnalyzeDbh_p.h:361
char vox_units[4]
Definition: itkAnalyzeDbh_p.h:224
char originator[10]
Definition: itkAnalyzeDbh_p.h:350
int extents
Definition: itkAnalyzeDbh_p.h:197
struct image_dimension dime
Definition: itkAnalyzeDbh_p.h:387
short int datatype
Definition: itkAnalyzeDbh_p.h:229
char cal_units[8]
Definition: itkAnalyzeDbh_p.h:226
Definition: itkAnalyzeDbh_p.h:105
Definition: itkAnalyzeDbh_p.h:213
Definition: itkAnalyzeDbh_p.h:83
int glmin
Definition: itkAnalyzeDbh_p.h:284
short int session_error
Definition: itkAnalyzeDbh_p.h:200
float cal_max
Definition: itkAnalyzeDbh_p.h:257
short int dim[8]
Definition: itkAnalyzeDbh_p.h:215
Definition: itkAnalyzeDbh_p.h:78
struct header_key hk
Definition: itkAnalyzeDbh_p.h:386
char hist_un0[3]
Definition: itkAnalyzeDbh_p.h:356
float funused2
Definition: itkAnalyzeDbh_p.h:256
DataTypeKeyValues
Definition: itkAnalyzeDbh_p.h:77
const short int DataTypeSizes[12]
Definition: itkAnalyzeDbh.cxx:32
Definition: itkAnalyzeDbh_p.h:99
int omin
Definition: itkAnalyzeDbh_p.h:365