Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkAnalyzeDbh.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkAnalyzeDbh.h,v $ 00005 Language: C++ 00006 Date: $Date: 2004/01/08 00:39:02 $ 00007 Version: $Revision: 1.5 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00031 #ifndef __dbh_h__ 00032 #define __dbh_h__ 00033 00034 namespace itk 00035 { 00040 enum DataTypeKeyValues { 00041 ANALYZE_DT_UNKNOWN =0, 00042 ANALYZE_DT_BINARY =1, 00043 ANALYZE_DT_UNSIGNED_CHAR=2, 00044 ANALYZE_DT_SIGNED_SHORT =4, 00045 ANALYZE_DT_SIGNED_INT =8, 00046 ANALYZE_DT_FLOAT =16, 00047 ANALYZE_DT_COMPLEX =32, 00048 ANALYZE_DT_DOUBLE =64, 00049 ANALYZE_DT_RGB =128, 00050 ANALYZE_DT_ALL =255, 00051 //Obsolete, using SPM, B2ANALYZE_DT_UNSIGNED_SHORT =6, /**< Deontes that the data type is unsigned short in brains2 analyze extensions*/ 00052 //Obsolete, using SPM, B2ANALYZE_DT_UNSIGNED_INT =12, /**< Deontes that the data type is unsigned int in brains2 analyze extensions*/ 00053 SPMANALYZE_DT_UNSIGNED_SHORT=132, 00054 SPMANALYZE_DT_UNSIGNED_INT =136 00055 }; 00056 00061 enum DataTypeIndex { 00062 ANALYZE_DT_INDEX_UNKNOWN =0, 00063 ANALYZE_DT_INDEX_BINARY =1, 00064 ANALYZE_DT_INDEX_UNSIGNED_CHAR =2, 00065 ANALYZE_DT_INDEX_SIGNED_SHORT =3, 00066 ANALYZE_DT_INDEX_SIGNED_INT =4, 00067 ANALYZE_DT_INDEX_FLOAT =5, 00068 ANALYZE_DT_INDEX_COMPLEX =6, 00069 ANALYZE_DT_INDEX_DOUBLE =7, 00070 ANALYZE_DT_INDEX_RGB =8, 00071 ANALYZE_DT_INDEX_ALL =9, 00072 //Obsolete, using SPM, B2ANALYZE_DT_INDEX_UNSIGNED_SHORT=10, 00073 //Obsolete, using SPM, B2ANALYZE_DT_INDEX_UNSIGNED_INT =11, 00074 SPMANALYZE_DT_INDEX_UNSIGNED_SHORT =10, 00075 SPMANALYZE_DT_INDEX_UNSIGNED_INT =11 00076 }; 00077 00078 00098 extern const char DataTypes[12][10]; 00099 00119 extern const short int DataTypeSizes[12]; 00120 00140 extern const short int DataTypeKey[12]; 00141 00148 struct header_key /* header_key */ 00149 {/*off + size*/ 00150 /*0 + 4 */int sizeof_hdr; 00155 /*4 + 10 */char data_type[10]; 00158 /*14 + 18*/char db_name[18]; 00160 /*32 + 4 */int extents; 00163 /*36 + 2 */short int session_error; 00165 /*38 + 1 */char regular; 00166 /*39 + 1 */char hkey_un0; 00167 };/* total=40 */ 00176 struct image_dimension /* image_dimension */ 00177 { /* off + size*/ 00178 /*0 + 16 */ short int dim[8]; 00187 /*16 + 4 */ char vox_units[4]; 00189 /*20 + 4 */ char cal_units[8]; 00191 /*24 + 2 */ short int unused1; 00192 /*30 + 2 */ short int datatype; 00196 /*32 + 2 */ short int bitpix; 00198 /*34 + 2 */ short int dim_un0; 00199 /*36 + 32*/ float pixdim[8]; 00210 /*68 + 4 */ float vox_offset; 00213 /*72 + 4 */ float roi_scale; 00218 /*76 + 4 */ float funused1; 00219 /*80 + 4 */ float funused2; 00220 /*84 + 4 */ float cal_max; 00224 /*88 + 4 */ float cal_min; 00225 /*92 + 4 */ int compressed; 00236 /*96 + 4 */ int verified; 00237 /*100 + 4*/ int glmax; 00247 /*104 + 4*/ int glmin; 00248 }/*total=108 */; 00249 00264 struct data_history /* data_history */ 00265 {/*off + size*/ 00266 /*0 + 80 */char descrip[80]; 00267 /*80 + 24 */char aux_file[24]; 00270 /*104 + 1 */char orient; 00313 /*105 + 10*/char originator[10]; 00314 /*115 + 10*/char generated[10]; 00315 /*125 + 10*/char scannum[10]; 00316 /*135 + 10*/char patient_id[10]; 00317 /*145 + 10*/char exp_date[10]; 00318 /*155 + 10*/char exp_time[10]; 00319 /*165 + 3 */char hist_un0[3]; 00320 /*168 + 4 */int views; 00321 /*172 + 4 */int vols_added; 00322 /*176 + 4 */int start_field; 00323 /*180 + 4 */int field_skip; 00324 /*184 + 4 */int omax; 00328 /*188 + 4 */int omin; 00329 /*192 + 4 */int smax; 00330 /*196 + 4 */int smin; 00331 };/* total=200 */ 00332 00347 struct dsr/* dsr */ 00348 {/* off + size*/ 00349 /*0 + 40 */ struct header_key hk; 00350 /*40 + 108 */ struct image_dimension dime; 00351 /*148 + 200*/ struct data_history hist; 00352 }/*total=348*/; 00353 } //End namespace itk 00354 #endif /* __dbh_h__ */

Generated at Sun Apr 1 02:24:03 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000