ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkAnalyzeDbh.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 {
77 enum DataTypeKeyValues {
78 
106 };
107 
112 enum DataTypeIndex {
113  ANALYZE_DT_INDEX_UNKNOWN =0,
114  ANALYZE_DT_INDEX_BINARY =1,
115  ANALYZE_DT_INDEX_UNSIGNED_CHAR =2,
116  ANALYZE_DT_INDEX_SIGNED_SHORT =3,
117  ANALYZE_DT_INDEX_SIGNED_INT =4,
118  ANALYZE_DT_INDEX_FLOAT =5,
119  ANALYZE_DT_INDEX_COMPLEX =6,
120  ANALYZE_DT_INDEX_DOUBLE =7,
121  ANALYZE_DT_INDEX_RGB =8,
122  ANALYZE_DT_INDEX_ALL =9,
123  //Obsolete, using SPM, B2ANALYZE_DT_INDEX_UNSIGNED_SHORT=10,
124  //Obsolete, using SPM, B2ANALYZE_DT_INDEX_UNSIGNED_INT =11,
125  SPMANALYZE_DT_INDEX_UNSIGNED_SHORT =10,
126  SPMANALYZE_DT_INDEX_UNSIGNED_INT =11
127 };
128 
129 
149 extern const char DataTypes[12][10];
150 
170 extern const short int DataTypeSizes[12];
171 
191 extern const short int DataTypeKey[12];
192 
199 struct header_key /* header_key */
200 {/*off + size*/
201 
225 };/* total=40 */
226 
235 struct image_dimension /* image_dimension */
236 { /* off + size*/
237 
325 }/*total=108 */;
326 
341 struct data_history /* data_history */
342 {/*off + size*/
343 
425 };/* total=200 */
426 
441 struct dsr/* dsr */
442 {/* off + size*/
443