ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 /* 00019 * 00020 * Copyright (c) 1986-2006 00021 * Biomedical Imaging Resource 00022 * Mayo Clinic 00023 * 00024 * All rights reserved. 00025 * 00026 * Redistribution and use in source and binary forms, with or 00027 * without modification, are permitted provided that the following 00028 * conditions are met: 00029 * 00030 * 1) Redistributions of source code must retain the above copyright 00031 * notice, this list of conditions and the following disclaimer. 00032 * 00033 * 2) Redistributions in binary form must reproduce the above copyright 00034 * notice, this list of conditions and the following disclaimer in the 00035 * documentation and/or other materials provided with the distribution. 00036 * 00037 * Neither the name of the Mayo Clinic nor the names of its 00038 * contributors may be used to endorse or promote products derived from 00039 * this software without specific prior written permission. 00040 * 00041 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00042 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00043 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 00044 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 00045 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 00046 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 00047 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 00048 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 00049 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 00050 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 00051 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00052 * 00053 */ 00054 00055 00068 #ifndef __itkAnalyzeDbh_h 00069 #define __itkAnalyzeDbh_h 00070 00071 namespace itk 00072 { 00077 enum DataTypeKeyValues { 00078 00106 }; 00107 00112 enum DataTypeIndex { 00113 ANALYZE_DT_INDEX_UNKNOWN =0, 00114 ANALYZE_DT_INDEX_BINARY =1, 00115 ANALYZE_DT_INDEX_UNSIGNED_CHAR =2, 00116 ANALYZE_DT_INDEX_SIGNED_SHORT =3, 00117 ANALYZE_DT_INDEX_SIGNED_INT =4, 00118 ANALYZE_DT_INDEX_FLOAT =5, 00119 ANALYZE_DT_INDEX_COMPLEX =6, 00120 ANALYZE_DT_INDEX_DOUBLE =7, 00121 ANALYZE_DT_INDEX_RGB =8, 00122 ANALYZE_DT_INDEX_ALL =9, 00123 //Obsolete, using SPM, B2ANALYZE_DT_INDEX_UNSIGNED_SHORT=10, 00124 //Obsolete, using SPM, B2ANALYZE_DT_INDEX_UNSIGNED_INT =11, 00125 SPMANALYZE_DT_INDEX_UNSIGNED_SHORT =10, 00126 SPMANALYZE_DT_INDEX_UNSIGNED_INT =11 00127 }; 00128 00129 00149 extern const char DataTypes[12][10]; 00150 00170 extern const short int DataTypeSizes[12]; 00171 00191 extern const short int DataTypeKey[12]; 00192 00199 struct header_key /* header_key */ 00200 {/*off + size*/ 00201 00225 };/* total=40 */ 00226 00235 struct image_dimension /* image_dimension */ 00236 { /* off + size*/ 00237 00325 }/*total=108 */; 00326 00341 struct data_history /* data_history */ 00342 {/*off + size*/ 00343 00425 };/* total=200 */ 00426 00441 struct dsr/* dsr */ 00442 {/* off + size*/ 00443