00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00031 #ifndef __itkGEAdwImageIO_h
00032 #define __itkGEAdwImageIO_h
00033
00034 #ifdef _MSC_VER
00035 #pragma warning ( disable : 4786 )
00036 #endif
00037
00038 #include "itkIPLCommonImageIO.h"
00039
00040 namespace itk
00041 {
00049 class ITK_EXPORT GEAdwImageIO : public IPLCommonImageIO
00050 {
00051 public:
00053 typedef GEAdwImageIO Self;
00054 typedef IPLCommonImageIO Superclass;
00055 typedef SmartPointer<Self> Pointer;
00056
00058 itkNewMacro(Self);
00059
00061 itkTypeMacro(GEAdwImageIO, Superclass);
00062
00063
00064
00071 virtual bool CanReadFile(const char* FileNameToRead);
00072
00074
00075
00076
00078
00079
00080
00082
00083
00084
00088
00089
00090
00091
00092
00099
00100
00101
00103
00104
00105
00108
00109
00110 protected:
00111 GEAdwImageIO();
00112 ~GEAdwImageIO();
00113
00114
00115 virtual GEImageHeader *ReadHeader(const char *FileNameToRead);
00116 private:
00117 GEAdwImageIO(const Self&);
00118 void operator=(const Self&);
00119 enum GE_ADW_DEFINES {
00120
00122 GE_ADW_SU_ID_LEN=4,
00123
00125 GE_ADW_SU_PRODID_LEN=13,
00126
00128 GE_ADW_EX_SUID_LEN=4,
00129
00131 GE_ADW_EX_NO_LEN=2,
00132
00134 GE_ADW_EX_HOSPNAME_LEN=33,
00135
00137 GE_ADW_EX_MAGSTRENGTH_LEN=4,
00138
00140 GE_ADW_EX_PATID_LEN=13,
00141
00143 GE_ADW_EX_PATNAME_LEN=25,
00144
00146 GE_ADW_EX_PATAGE_LEN=2,
00147
00149 GE_ADW_EX_PATIAN_LEN=2,
00150
00152 GE_ADW_EX_PATSEX_LEN=2,
00153
00155 GE_ADW_EX_PATWEIGHT_LEN=4,
00156
00158 GE_ADW_EX_HIST_LEN=61,
00159
00161 GE_ADW_EX_DATETIME_LEN=4,
00162
00164 GE_ADW_EX_REFPHY_LEN=33,
00165
00167 GE_ADW_EX_DIAGRAD_LEN=33,
00168
00170 GE_ADW_EX_OP_LEN=4,
00171
00173 GE_ADW_EX_DESC_LEN=23,
00174
00176 GE_ADW_EX_TYP_LEN=3,
00177
00179 GE_ADW_EX_FORMAT_LEN=2,
00180
00182 GE_ADW_EX_SYSID_LEN=9,
00183
00189 GE_ADW_SE_SUID_LEN=4,
00190
00192 GE_ADW_SE_UNIQ_LEN=2,
00193
00195 GE_ADW_SE_EXNO_LEN=2,
00196
00198 GE_ADW_SE_NO_LEN=2,
00199
00201 GE_ADW_SE_DATETIME_LEN=4,
00202
00204 GE_ADW_SE_DESC_LEN=30,
00205
00207 GE_ADW_SE_TYP_LEN=2,
00208
00210 GE_ADW_SE_PLANE_LEN=2,
00211
00213 GE_ADW_SE_POSITION_LEN=4,
00214
00216 GE_ADW_SE_ENTRY_LEN=4,
00217
00219 GE_ADW_SE_ANREF_LEN=3,
00220
00222 GE_ADW_SE_CONTRAST_LEN=2,
00223
00225 GE_ADW_SE_START_RAS_LEN=1,
00226
00228 GE_ADW_SE_START_LOC_LEN=4,
00229
00231 GE_ADW_SE_END_RAS_LEN=1,
00232
00234 GE_ADW_SE_END_LOC_LEN=4,
00235
00237 GE_ADW_SE_NUMIMAGES_LEN=4,
00238
00244 GE_ADW_IM_SUID_LEN=4,
00245
00247 GE_ADW_IM_UNIQ_LEN=2,
00248
00250 GE_ADW_IM_EXNO_LEN=2,
00251
00253 GE_ADW_IM_SENO_LEN=2,
00254
00256 GE_ADW_IM_NO_LEN=2,
00257
00259 GE_ADW_IM_DATETIME_LEN=4,
00260
00262 GE_ADW_IM_ACTUAL_DT_LEN=4,
00263
00265 GE_ADW_IM_SCTIME_LEN=4,
00266
00268 GE_ADW_IM_SLTHICK_LEN=4,
00269
00271 GE_ADW_IM_IMATRIX_X_LEN=2,
00272
00274 GE_ADW_IM_IMATRIX_Y_LEN=2,
00275
00277 GE_ADW_IM_DFOV_LEN=4,
00278
00280 GE_ADW_IM_DFOV_RECT_LEN=4,
00281
00283 GE_ADW_IM_DIM_X_LEN=4,
00284
00286 GE_ADW_IM_DIM_Y_LEN=4,
00287
00289 GE_ADW_IM_PIXSIZE_X_LEN=4,
00290
00292 GE_ADW_IM_PIXSIZE_Y_LEN=4,
00293
00295 GE_ADW_IM_CONTMODE_LEN=2,
00296
00298 GE_ADW_IM_PLANE_LEN=2,
00299
00301 GE_ADW_IM_SCANSPACING_LEN=4,
00302
00304 GE_ADW_IM_LOC_RAS_LEN=1,
00305
00307 GE_ADW_IM_LOC_LEN=4,
00308
00310 GE_ADW_IM_ULHC_R_LEN=4,
00311
00313 GE_ADW_IM_ULHC_A_LEN=4,
00314
00316 GE_ADW_IM_ULHC_S_LEN=4,
00317
00319 GE_ADW_IM_URHC_R_LEN=4,
00320
00322 GE_ADW_IM_URHC_A_LEN=4,
00323
00325 GE_ADW_IM_URHC_S_LEN=4,
00326
00328 GE_ADW_IM_BRHC_R_LEN=4,
00329
00331 GE_ADW_IM_BRHC_A_LEN=4,
00332
00334 GE_ADW_IM_BRHC_S_LEN=4,
00335
00337 GE_ADW_IM_TR_LEN=4,
00338
00340 GE_ADW_IM_TI_LEN=4,
00341
00343 GE_ADW_IM_TE_LEN=4,
00344
00346 GE_ADW_IM_NUMECHO_LEN=2,
00347
00349 GE_ADW_IM_ECHONUM_LEN=2,
00350
00352 GE_ADW_IM_NEX_LEN=4,
00353
00355 GE_ADW_IM_CONTIG_LEN=2,
00356
00358 GE_ADW_IM_HRTRATE_LEN=2,
00359
00361 GE_ADW_IM_TDEL_LEN=4,
00362
00364 GE_ADW_IM_XMTGAIN_LEN=2,
00365
00367 GE_ADW_IM_MR_FLIP_LEN=2,
00368
00370 GE_ADW_IM_CPHASE_LEN=2,
00371
00373 GE_ADW_IM_SWAPPF_LEN=2,
00374
00376 GE_ADW_IM_OBPLANE_LEN=4,
00377
00379 GE_ADW_IM_XMTFREQ_LEN=4,
00380
00382 GE_ADW_IM_PRESCAN_R1_LEN=2,
00383
00385 GE_ADW_IM_PRESCAN_R2_LEN=2,
00386
00388 GE_ADW_IM_IMODE_LEN=2,
00389
00391 GE_ADW_IM_IOPT_LEN=4,
00392
00394 GE_ADW_IM_PSEQ_LEN=2,
00395
00397 GE_ADW_IM_PSDNAME_LEN=33,
00398
00400 GE_ADW_IM_CTYP_LEN=2,
00401
00403 GE_ADW_IM_CNAME_LEN=17,
00404
00406 GE_ADW_IM_SUPP_TECH_LEN=2,
00407
00409 GE_ADW_IM_VBW_LEN=4,
00410
00412 GE_ADW_IM_SLQUANT_LEN=2,
00413
00415 GE_ADW_IM_USER0_LEN=4,
00416
00418 GE_ADW_IM_USER1_LEN=4,
00419
00421 GE_ADW_IM_USER2_LEN=4,
00422
00424 GE_ADW_IM_USER3_LEN=4,
00425
00427 GE_ADW_IM_USER4_LEN=4,
00428
00430 GE_ADW_IM_USER5_LEN=4,
00431
00433 GE_ADW_IM_USER6_LEN=4,
00434
00436 GE_ADW_IM_USER7_LEN=4,
00437
00439 GE_ADW_IM_USER8_LEN=4,
00440
00442 GE_ADW_IM_USER9_LEN=4,
00443
00445 GE_ADW_IM_USER10_LEN=4,
00446
00448 GE_ADW_IM_USER11_LEN=4,
00449
00451 GE_ADW_IM_USER12_LEN=4,
00452
00454 GE_ADW_IM_USER13_LEN=4,
00455
00457 GE_ADW_IM_USER14_LEN=4,
00458
00460 GE_ADW_IM_USER15_LEN=4,
00461
00463 GE_ADW_IM_USER16_LEN=4,
00464
00466 GE_ADW_IM_USER17_LEN=4,
00467
00469 GE_ADW_IM_USER18_LEN=4,
00470
00472 GE_ADW_IM_USER19_LEN=4,
00473
00475 GE_ADW_IM_USER20_LEN=4,
00476
00478 GE_ADW_IM_USER21_LEN=4,
00479
00481 GE_ADW_IM_USER22_LEN=4,
00482
00484 GE_ADW_IM_USER23_LEN=4,
00485
00487 GE_ADW_IM_USER24_LEN=4,
00488
00490 GE_ADW_IM_SATBITS_LEN=2,
00491
00493 GE_ADW_IM_SCIC_LEN=2,
00494
00496 GE_ADW_IM_FLAX_LEN=2,
00497
00499 GE_ADW_IM_VENC_LEN=2,
00500
00502 GE_ADW_IM_THK_DISCLMR_LEN=2,
00503
00505 GE_ADW_IM_VAS_COLLAPSE_LEN=2,
00506
00508 GE_ADW_IM_X_AXIS_ROT_LEN=4,
00509
00511 GE_ADW_IM_Y_AXIS_ROT_LEN=4,
00512
00514 GE_ADW_IM_Z_AXIS_ROT_LEN=4,
00515
00517 GE_ADW_IM_ECHO_TRN_LEN=2,
00518
00520 GE_ADW_IM_FRAC_ECHO_LEN=2,
00521
00523 GE_ADW_IM_PREP_PULSE_LEN=2,
00524
00526 GE_ADW_IM_CPHASENUM_LEN=2,
00527
00529 GE_ADW_IM_VAR_ECHO_LEN=2,
00530
00532 GE_ADW_IM_FREQ_DIR_LEN=2,
00533
00535 GE_ADW_IM_VMODE_LEN=2,
00536
00538 GE_ADW_VARIABLE_HDR_LENGTH_LEN=4,
00539
00541 };
00542
00543 };
00544
00545 }
00546
00547 #endif // __itkAnalyzeImageIO_h
00548