ITK  4.4.0
Insight Segmentation and Registration Toolkit
Ge5xHdr.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  * The definitions in this file were derived from genesis.tcl from
20  * David Clunies Dicom3Tools
21  *
22  *
23  * Copyright (c) 1993-2006, David A. Clunie DBA PixelMed Publishing. All rights reserved.
24  *
25  * Redistribution and use in source and binary forms, with or without modification, are
26  * permitted provided that the following conditions are met:
27  *
28  * 1. Redistributions of source code must retain the above copyright notice, this list of
29  * conditions and the following disclaimers.
30  *
31  * 2. Redistributions in binary form must reproduce the above copyright notice, this list of
32  * conditions and the following disclaimers in the documentation and/or other materials
33  * provided with the distribution.
34  *
35  * 3. Neither the name of PixelMed Publishing nor the names of its contributors may
36  * be used to endorse or promote products derived from this software.
37  *
38  * This software is provided by the copyright holders and contributors "as is" and any
39  * express or implied warranties, including, but not limited to, the implied warranties
40  * of merchantability and fitness for a particular purpose are disclaimed. In no event
41  * shall the copyright owner or contributors be liable for any direct, indirect, incidental,
42  * special, exemplary, or consequential damages (including, but not limited to, procurement
43  * of substitute goods or services; loss of use, data or profits; or business interruption)
44  * however caused and on any theory of liability, whether in contract, strict liability, or
45  * tort (including negligence or otherwise) arising in any way out of the use of this software,
46  * even if advised of the possibility of such damage.
47  *
48  * This software has neither been tested nor approved for clinical use or for incorporation in
49  * a medical device. It is the redistributor's or user's responsibility to comply with any
50  * applicable local, state, national or international regulations.
51  *
52  */
53 
54 #ifndef __Ge5xHdr_h
55 #define __Ge5xHdr_h
56 
57 #define GE_5X_MAGIC_NUMBER 0x494d4746
58 
59 typedef struct GE_5x_ImgHdr {
74  unsigned short GENESIS_IH_img_checksum;
101 
102 
104  GENESIS_SU_ID = 0, /* Suite ID */
105  GENESIS_SU_UNIQ = 4, /* Make Unique Flag */
106  GENESIS_SU_DISKID = 6, /* Disk ID */
107  GENESIS_SU_PRODID = 7, /* Product ID */
108  GENESIS_SU_VERSCRE = 20, /* Original Version of Record */
109  GENESIS_SU_VERSCUR = 22, /* Current Version of Record */
110  GENESIS_SU_CHECKSUM = 24, /* Suite Record Checksum */
111  GENESIS_SU_PADDING = 28, /* Spare Space */
112  GENESIS_SU_HDR_LEN = 114 /* Length of Suite Header */
113 };
114 
116  GENESIS_EX_SUID = 0, /* Suite Id for this Exam */
117  GENESIS_EX_UNIQ = 4, /* Make-Unique Flag */
118  GENESIS_EX_DISKID = 6, /* Disk ID for this Exam */
119  GENESIS_EX_NO = 8, /* Exam Number */
120  GENESIS_EX_HOSPNAME = 10, /* Hospital Name */
121  GENESIS_EX_DETECT = 44, /* Detector Type */
122  GENESIS_EX_NUMCELLS = 46, /* Number of cells in det */
123  GENESIS_EX_ZEROCELL = 50, /* Cell number at theta */
124  GENESIS_EX_CELLSPACE = 54, /* Cell spacing */
133  GENESIS_EX_MAGSTRENGTH = 80, /* Magnetic Strength Gauss*/
134  GENESIS_EX_PATID = 84, /* Patient ID for this Exam*/
135  GENESIS_EX_PATNAME = 97, /* Patient Name*/
136  GENESIS_EX_PATAGE = 122, /* Patient Age */
137  GENESIS_EX_PATIAN = 124, /* Patient Age Notation */
139  GENESIS_EX_PATWEIGHT = 128, /* Patient Weight */
175 };
176 
262 };
263 
470 };
471 
669 };
670 
671 
675 };
676 
678  GE_5X_NO = 0,
680 };
681 
683  GE_5X_PREP_NONE = 0, /* None */
684  GE_5X_PREP_IR = 1, /* Inversion Recovery*/
685  GE_5X_PREP_DE = 2 /* Driven Equilibrium */
686 };
687 
693 };
694 
700 };
701 
711 };
712 
717 };
718 
723 };
724 
734 };
735 
763 };
764 
768 };
769 
775 };
776 
782 };
783 
787 };
788 
792 };
793 
799 };
800 
806 };
807 
814 };
815 
822 };
823 
827 };
828 
838 };
839 
844 };
845 
852 };
853 
854 #endif /* __Ge5xHdr_h */
855