PS-2020a / part05
.pdfPS3.5
DICOM PS3.5 2020a - Data Structures and Encoding
Page 2
PS3.5: DICOM PS3.5 2020a - Data Structures and Encoding
Copyright © 2020 NEMA
A DICOM® publication
- Standard -
DICOM PS3.5 2020a - Data Structures and Encoding Page 3
Table of Contents
Notice and Disclaimer ........................................................................................................................................... |
13 |
Foreword ............................................................................................................................................................ |
15 |
1. Scope and Field of Application ............................................................................................................................. |
17 |
2. Normative References ....................................................................................................................................... |
19 |
3. Definitions ....................................................................................................................................................... |
23 |
4. Symbols and Abbreviations ................................................................................................................................. |
27 |
5. Conventions ..................................................................................................................................................... |
29 |
6. Value Encoding ................................................................................................................................................ |
31 |
6.1. Support of Character Repertoires ................................................................................................................... |
31 |
6.1.1. Representation of Encoded Character Values ............................................................................................ |
31 |
6.1.2. Graphic Characters .............................................................................................................................. |
32 |
6.1.2.1. Default Character Repertoire ........................................................................................................... |
32 |
6.1.2.2. Extension or Replacement of the Default Character Repertoire ............................................................... |
32 |
6.1.2.3. Encoding of Character Repertoires .................................................................................................... |
33 |
6.1.2.4. Code Extension Techniques ............................................................................................................ |
34 |
6.1.2.5. Usage of Code Extension ................................................................................................................ |
34 |
6.1.2.5.1. Assumed Initial States .............................................................................................................. |
35 |
6.1.2.5.2. Restrictions for Code Extension ................................................................................................. |
35 |
6.1.2.5.3. Requirements ......................................................................................................................... |
35 |
6.1.2.5.4. Levels of Implementation and Initial Designation ............................................................................ |
35 |
6.1.3. Control Characters ............................................................................................................................... |
36 |
6.2. Value Representation (VR) ........................................................................................................................... |
37 |
6.2.1. Person Name (PN) Value Representation ................................................................................................. |
47 |
6.2.1.1. Examples of PN VR and Notes ......................................................................................................... |
47 |
6.2.1.2. Ideographic and Phonetic Characters in Data Elements with VR of PN ..................................................... |
47 |
6.2.2. Unknown (UN) Value Representation ....................................................................................................... |
48 |
6.2.3. URI/URL (UR) Value Representation ....................................................................................................... |
49 |
6.3. Enumerated Values and Defined Terms .......................................................................................................... |
49 |
6.4. Value Multiplicity (VM) and Delimitation ........................................................................................................... |
50 |
7. The Data Set .................................................................................................................................................... |
51 |
7.1. Data Elements ........................................................................................................................................... |
51 |
7.1.1. Data Element Fields ............................................................................................................................. |
52 |
7.1.2. Data Element Structure with Explicit VR .................................................................................................... |
53 |
7.1.3. Data Element Structure with Implicit VR .................................................................................................... |
53 |
7.2. Group Length ............................................................................................................................................ |
54 |
7.3. Little Endian Byte Ordering ........................................................................................................................... |
54 |
7.4. Data Element Type ..................................................................................................................................... |
55 |
7.4.1. Type 1 Required Data Elements .............................................................................................................. |
55 |
7.4.2. Type 1C Conditional Data Elements ......................................................................................................... |
55 |
7.4.3. Type 2 Required Data Elements .............................................................................................................. |
55 |
7.4.4. Type 2C Conditional Data Elements ......................................................................................................... |
56 |
7.4.5. Type 3 Optional Data Elements ............................................................................................................... |
56 |
7.4.6. Data Element Types Within A Sequence ................................................................................................... |
56 |
7.5. Nesting of Data Sets ................................................................................................................................... |
56 |
7.5.1. Item Encoding Rules ............................................................................................................................. |
57 |
7.5.2. Delimitation of The Sequence of Items ..................................................................................................... |
57 |
7.5.3. Sequence Inheritance ........................................................................................................................... |
59 |
7.6. Repeating Groups ...................................................................................................................................... |
59 |
7.7. Retired Data Elements ................................................................................................................................. |
59 |
7.8. Private Data Elements ................................................................................................................................. |
60 |
7.8.1. Private Data Element Tags .................................................................................................................... |
60 |
7.8.2. Encoding of Private Elements ................................................................................................................. |
61 |
8. Encoding of Pixel, Overlay and Waveform Data ....................................................................................................... |
63 |
8.1. Pixel and Overlay Data, and Related Data Elements .......................................................................................... |
63 |
8.1.1. Pixel Data Encoding of Related Data Elements .......................................................................................... |
63 |
8.1.2. Overlay Data Encoding of Related Data Elements ...................................................................................... |
64 |
8.2. Native or Encapsulated Format Encoding ........................................................................................................ |
65 |
- Standard -
Page 4 |
DICOM PS3.5 2020a - Data Structures and Encoding |
|
8.2.1. JPEG Image Compression ..................................................................................................................... |
66 |
|
8.2.2. Run Length Encoding Image Compression ................................................................................................ |
68 |
|
8.2.3. JPEG-LS Image Compression ................................................................................................................ |
69 |
|
8.2.4. JPEG 2000 Image Compression ............................................................................................................. |
70 |
|
8.2.5. MPEG2 Main Profile / Main Level Video Compression ................................................................................. |
72 |
|
8.2.6. MPEG2 Main Profile / High Level Video Compression ................................................................................. |
74 |
|
8.2.7. MPEG-4 AVC/H.264 High Profile / Level 4.1 Video Compression ................................................................... |
77 |
|
8.2.8. MPEG-4 AVC/H.264 High Profile / Level 4.2 Video Compression ................................................................... |
79 |
|
8.2.9. MPEG-4 AVC/H.264 Stereo High Profile / Level 4.2 Video Compression ......................................................... |
81 |
|
8.2.10. HEVC/H.265 Main Profile / Level 5.1 Video Compression ........................................................................... |
81 |
|
8.2.11. HEVC/H.265 Main 10 Profile / Level 5.1 Video Compression ....................................................................... |
83 |
|
8.2.12. Constraints for Audio Data Integration in AVC and HEVC Compressed Bit Streams ......................................... |
84 |
|
8.2.13. Constraints For SMPTE ST 2110-20 Uncompressed Active Video For DICOM-RTV ......................................... |
86 |
|
8.3. Waveform Data and Related Data Elements .................................................................................................... |
87 |
|
8.4. Pixel Data Provider Service .......................................................................................................................... |
|
87 |
8.4.1. JPIP Referenced Pixel Data ................................................................................................................... |
87 |
|
8.5. Security Considerations for Encoding of Pixel, Overlay, and Waveform Data (Informative) ..................................... |
88 |
|
9. Unique Identifiers (UIDs) .................................................................................................................................... |
|
89 |
9.1. UID Encoding Rules .................................................................................................................................... |
|
89 |
9.2. Unique Identifier Registration ........................................................................................................................ |
|
90 |
9.2.1. DICOM Defined and Registered Unique Identifiers ...................................................................................... |
90 |
|
9.2.2. Privately Defined Unique Identifiers ......................................................................................................... |
90 |
|
10. Transfer Syntax .............................................................................................................................................. |
|
91 |
10.1. DICOM Default Transfer Syntax ................................................................................................................... |
91 |
|
10.2. Transfer Syntax for a DICOM Default of Lossless JPEG Compression ................................................................. |
92 |
|
10.3. Transfer Syntaxes for a DICOM Default of Lossy JPEG Compression .................................................................. |
92 |
|
10.4. Transfer Syntax For DICOM RLE Image Compression ..................................................................................... |
92 |
|
10.5. Transfer Syntax For A DICOM Default of Lossless and Lossy (Near-lossless) JPEG-LS Compression ....................... |
93 |
|
10.6. Transfer Syntax For JPEG 2000 Compression ................................................................................................ |
93 |
|
10.7. Transfer Syntax For MPEG2 Main Profile / Main Level Video Compression ........................................................... |
93 |
|
10.8. Transfer Syntax For JPIP Referenced Pixel Data ............................................................................................. |
93 |
|
10.9. Transfer Syntax For MPEG2 Main Profile / High Level Video Compression ........................................................... |
93 |
|
10.10. Transfer Syntax For MPEG-4 AVC/H.264 High Profile / Level 4.1 Video Compression ........................................... |
94 |
|
10.11. Transfer Syntaxes for MPEG-4 AVC/H.264 High Profile / Level 4.2 Video Compression ......................................... |
94 |
|
10.12. Transfer Syntax For MPEG-4 AVC/H.264 Stereo High Profile / Level 4.2 Video Compression ................................. |
94 |
|
10.13. Transfer Syntax for HEVC/H.265 Main Profile / Level 5.1 Video Compression ...................................................... |
94 |
|
10.14. Transfer Syntax for HEVC/H.265 Main 10 Profile / Level 5.1 Video Compression ................................................. |
94 |
|
10.15. Transfer Syntax for SMPTE ST 2110-20 Uncompressed Progressive Active Video ............................................... |
94 |
|
10.16. Transfer Syntax for SMPTE ST 2110-20 Uncompressed Interlaced Active Video .................................................. |
94 |
|
10.16.1. Interlaced Vs. Progressive Video ......................................................................................................... |
94 |
|
10.17. Transfer Syntax for SMPTE ST 2110-30 PCM Digital Audio ............................................................................. |
95 |
|
A. Transfer Syntax Specifications (Normative) ............................................................................................................ |
97 |
|
A.1. DICOM Implicit VR Little Endian Transfer Syntax .............................................................................................. |
97 |
|
A.2. DICOM Little Endian Transfer Syntax (Explicit VR) ............................................................................................ |
98 |
|
A.3. DICOM Big Endian Transfer Syntax (Explicit VR) ............................................................................................ |
100 |
|
A.4. Transfer Syntaxes For Encapsulation of Encoded Pixel Data ............................................................................. |
100 |
|
A.4.1. JPEG Image Compression ................................................................................................................... |
103 |
|
A.4.2. RLE Image Compression ..................................................................................................................... |
|
104 |
A.4.3. JPEG-LS Image Compression .............................................................................................................. |
104 |
|
A.4.4. JPEG 2000 Image Compression ........................................................................................................... |
105 |
|
A.4.5. MPEG2 Video Compression ................................................................................................................. |
107 |
|
A.4.6. MPEG-4 AVC/H.264 High Profile / Level 4.1 Video Compression ................................................................. |
107 |
|
A.4.7. MPEG-4 AVC/H.264 High Profile / Level 4.2 Video Compression ................................................................. |
107 |
|
A.4.8. MPEG-4 AVC/H.264 Stereo High Profile / Level 4.2 Video Compression ....................................................... |
107 |
|
A.4.9. HEVC/H.265 Main Profile / Level 5.1 Video Compression ........................................................................... |
108 |
|
A.4.10. HEVC/H.265 Main 10 Profile / Level 5.1 Video Compression ..................................................................... |
108 |
|
A.5. DICOM Deflated Little Endian Transfer Syntax (Explicit VR) .............................................................................. |
108 |
|
A.6. DICOM JPIP Referenced Transfer Syntax (Explicit VR) .................................................................................... |
109 |
|
A.7. DICOM JPIP Referenced Deflate Transfer Syntax (Explicit VR) .......................................................................... |
109 |
|
A.8. SMPTE ST 2110-20 Uncompressed Progressive Active Video Transfer Syntax ..................................................... |
109 |
- Standard -
DICOM PS3.5 2020a - Data Structures and Encoding |
Page 5 |
A.9. SMPTE ST 2110-20 Uncompressed Interlaced Active Video Transfer Syntax ....................................................... |
111 |
A.10. : SMPTE ST 2110-30 PCM Audio Transfer Syntax ......................................................................................... |
111 |
B. Creating a Privately Defined Unique Identifier (Informative) ...................................................................................... |
113 |
B.1. Organizationally Derived UID ...................................................................................................................... |
113 |
B.2. UUID Derived UID .................................................................................................................................... |
113 |
C. DICOM Unique Identifier Registration Process (Informative) .................................................................................... |
115 |
D. Examples of Various Pixel Data and Overlay Encoding Schemes (Informative) ............................................................ |
117 |
D.1. Detailed Example of Pixel Data Encoding ...................................................................................................... |
117 |
D.2. Various Additional Examples of Pixel and Overlay Data Cells ............................................................................ |
120 |
D.3. Examples of Float and Double Float Pixel Data .............................................................................................. |
122 |
E. DICOM Default Character Repertoire (Normative) .................................................................................................. |
123 |
F. Encapsulated Images As Part of A DICOM Message (Informative) ............................................................................ |
125 |
F.1. Encapsulated JPEG Encoded Images ........................................................................................................... |
125 |
F.2. Encapsulated JPEG-LS Encoded Images ...................................................................................................... |
127 |
F.3. Encapsulated JPEG 2000 Encoded Images ................................................................................................... |
127 |
G. Encapsulated RLE Compressed Images (Normative) ............................................................................................. |
129 |
G.1. Summary ................................................................................................................................................ |
129 |
G.2. Byte Segments ........................................................................................................................................ |
129 |
G.3. The RLE Algorithm ................................................................................................................................... |
129 |
G.3.1. The RLE Encoder .............................................................................................................................. |
129 |
G.3.2. The RLE Decoder .............................................................................................................................. |
130 |
G.4. Organization of RLE Compressed Frame ...................................................................................................... |
130 |
G.5. RLE Header Format .................................................................................................................................. |
131 |
G.6. Example of Elements For An Encoded YCbCr RLE Three-frame Image with Basic Offset Table ............................... |
131 |
H. Character Sets and Person Name Value Representation in the Japanese Language (Informative) ................................... |
133 |
H.1. Character Sets for the Japanese Language ................................................................................................... |
133 |
H.1.1. JIS X 0201 ....................................................................................................................................... |
133 |
H.1.2. JIS X 0208 ....................................................................................................................................... |
133 |
H.1.3. JIS X 0212 ....................................................................................................................................... |
133 |
H.2. Internet Practice ....................................................................................................................................... |
134 |
H.3. Example of Person Name Value Representation in the Japanese Language ......................................................... |
135 |
H.3.1. Value 1 of Attribute Specific Character Set (0008,0005) is Not Present. ........................................................ |
135 |
H.3.2. Value 1 of Attribute Specific Character Set (0008,0005) is ISO 2022 IR 13. .................................................... |
136 |
I. Character Sets and Person Name Value Representation in the Korean Language (Informative) ....................................... |
139 |
I.1. Character Sets For The Korean Language in DICOM ........................................................................................ |
139 |
I.2. Example of Person Name Value Representation in the Korean Language ............................................................. |
139 |
I.3. Example of Long Text Value Representation in the Korean Language Without Explicit Escape Sequences Between Char- |
|
acter Sets ..................................................................................................................................................... |
140 |
J. Character Sets and Person Name Value Representation using Unicode UTF-8, GB18030 and GBK (Informative) ............... |
143 |
J.1. Example of Person Name Value Representation in the Chinese Language Using Unicode ....................................... |
143 |
J.2. Example of Long Text Value Representation in the Chinese Language Using Unicode ............................................ |
144 |
J.3. Example of Person Name Value Representation in the Chinese Language Using GB18030 ..................................... |
144 |
J.4. Example of Long Text Value Representation in the Chinese Language Using GB18030 .......................................... |
145 |
J.5. Person Name Value Representation in Other Languages Using Unicode .............................................................. |
146 |
K. Character Sets and Person Name Value Representation in the Chinese Language with Code Extensions (Informative) ....... |
147 |
K.1. Character Sets for the Chinese Language in DICOM ....................................................................................... |
147 |
K.2. Example of Person Name Value Representation in the Chinese Language ........................................................... |
147 |
K.3. Example of Long Text Value Representation in the Chinese Language with GB2312 G1 ......................................... |
148 |
- Standard -
Page 6 |
DICOM PS3.5 2020a - Data Structures and Encoding |
- Standard -
|
|
DICOM PS3.5 2020a - Data Structures and Encoding |
Page 7 |
List of Figures |
|
||
7.1-1. DICOM Data Set and Data Element Structures .................................................................................................. |
52 |
||
D-1. An Image Pixel Plane .................................................................................................................................... |
117 |
||
D-2. Encoding (Packing) of Arbitrary Pixel Data with a VR of OW ................................................................................. |
118 |
||
D-3. Example Pixel Cells ...................................................................................................................................... |
118 |
||
D-4. Example Pixel Cells Packed into 16-bit Words (VR = OW) .................................................................................... |
119 |
||
D-5. |
Example Pixel Cells Byte Ordered in Memory (VR = OW) ..................................................................................... |
119 |
|
D-6. |
Sample Pixel Data Byte Streams (VR = OW) ..................................................................................................... |
119 |
|
D-7. |
Sample Pixel Data Byte Streams for 8-bits Allocated and 8-bits Stored (VR = OW) .................................................... |
120 |
|
D-8. |
Sample Pixel Data Byte Streams for 8-bits Allocated and 8-bits Stored (Explicit VR = OB) .......................................... |
120 |
|
D.2-1. Example 1 of Pixel and Overlay Data Cells ..................................................................................................... |
121 |
||
D.2-3. Example 3 of Pixel and Overlay Data Cells ..................................................................................................... |
121 |
||
D.2-4. |
Example 4 of Overlay Data Cells ................................................................................................................... |
121 |
|
D.2-5. |
Example 5 of Single Bit Pixel Data Cells (VR=OW) ........................................................................................... |
122 |
|
D.3-1. |
Sample Float Pixel Data Byte Streams for VR = OF .......................................................................................... |
122 |
|
D.3-2. |
Sample Float Pixel Data Byte Streams for VR = OD .......................................................................................... |
122 |
- Standard -
Page 8 |
DICOM PS3.5 2020a - Data Structures and Encoding |
- Standard -
|
DICOM PS3.5 2020a - Data Structures and Encoding |
Page 9 |
List of Tables |
|
|
6.1-1. DICOM Control Characters and Their Encoding ................................................................................................. |
36 |
|
6.2-1. DICOM Value Representations ....................................................................................................................... |
38 |
|
7.1-1. Data Element with Explicit VR other than as shown in Table 7.1-2 ......................................................................... |
53 |
|
7.1-2. |
Data Element with Explicit VR of AE, AS, AT, CS, DA, DS, DT, FL, FD, IS, LO, LT, PN, SH, SL, SS, ST, TM, UI, UL and |
|
US .................................................................................................................................................................... |
|
53 |
7.1-3. |
Data Element with Implicit VR ......................................................................................................................... |
54 |
7.5-1. |
Example of a Data Element with Implicit VR Defined as a Sequence of Items (VR = SQ) with Three Items of Explicit |
|
Length ............................................................................................................................................................... |
58 |
7.5-2. Example of a Data Element with Explicit VR Defined as a Sequence of Items (VR = SQ) of Undefined Length, Containing
Two Items of Explicit Length ................................................................................................................................... |
58 |
7.5-3. Example of a Data Element with Implicit VR Defined as a Sequence of Items (VR = SQ) of Undefined Length, Containing
Two Items Where One Item is of Explicit Length and the Other Item is of Undefined Length ................................................. |
59 |
8.2.1-1. Valid Values of Pixel Data Related Attributes for JPEG Lossy Transfer Syntaxes using Standard Photometric Interpreta-
tions .................................................................................................................................................................. |
67 |
8.2.1-2. Valid Values of Pixel Data Related Attributes for JPEG Lossless Transfer Syntaxes using Standard Photometric Interpret-
ations ................................................................................................................................................................. |
67 |
8.2.2-1. Valid Values of Pixel Data Related Attributes for RLE Compression using Standard Photometric Interpretations ........... |
69 |
8.2.3-1. Valid Values of Pixel Data Related Attributes for JPEG-LS Compression using Standard Photometric Interpretations .... |
70 |
8.2.4-1. Valid Values of Pixel Data Related Attributes for JPEG 2000 Transfer Syntaxes using Standard Photometric Interpreta-
tions .................................................................................................................................................................. |
|
71 |
|
8-1. MPEG2 Main Profile / Main Level Image Transfer Syntax Rows and Columns Attributes ............................................... |
73 |
||
8-2. MPEG2 Main Profile / High Level Image Transfer Syntax Frame Rate Attributes ......................................................... |
75 |
||
8-3. Examples of MPEG2 Main Profile / High Level Screen Resolution ............................................................................ |
76 |
||
8-4. |
Values Permitted for MPEG-4 AVC/H.264 BD-compatible High Profile / Level 4.1 ........................................................ |
78 |
|
8-5. |
MPEG-4 |
AVC/H.264 High Profile / Level 4.1 Image Transfer Syntax Frame Rate Attributes ........................................... |
79 |
8-7. |
MPEG-4 |
AVC/H.264 High Profile / Level 4.2 Image Transfer Syntax Frame Rate Attributes ........................................... |
80 |
8-8. |
MPEG-4 |
AVC/H.264 High Profile / Level 4.2 Image Transfer Syntax Stereo Attributes .................................................. |
81 |
8.2.12-1. Allowed Audio Formats ............................................................................................................................. |
84 |
||
8.2.13-1. Constraints Applicable to Attributes describing Pixel Data ................................................................................ |
86 |
||
8.2.13-2. List of supported SMPTE ST 2110-20 Parameter Combinations ........................................................................ |
86 |
||
8.2.13-3. List of unsupported SMPTE ST 2110-20 Parameter Combinations ..................................................................... |
86 |
||
A.4-1.ExampleforElementsofanEncodedSingle-FrameImageDefinedasaSequenceofThreeFragmentsWithoutBasicOffset |
|||
Table Item Value ................................................................................................................................................ |
102 |
A.4-1b. Example for Elements of an Encoded Single-Frame Image Defined as a Sequence of Three Fragments Without Basic
Offset Table Item Value (continued) ........................................................................................................................ |
102 |
A.4-2. Examples of Elements for an Encoded Two-Frame Image Defined as a Sequence of Three Fragments with Basic Table
Item Values ....................................................................................................................................................... |
103 |
A.4-2b. Examples of Elements for an Encoded Two-Frame Image Defined as a Sequence of Three Fragments with Basic Table
Item Values (continued) ....................................................................................................................................... |
103 |
A.4-3. DICOM Transfer Syntax UIDs for JPEG .......................................................................................................... |
103 |
A.8-1. DICOM Attributes for different color resolution ................................................................................................. |
110 |
A.10-1. ST 2110-30 and DICOM sampling frequency ................................................................................................. |
111 |
A.10-2. Waveform Sample Interpretation ................................................................................................................. |
111 |
A.10-3. Example of Number of Waveform Samples for 48kHz for basic Audio (Mono or Stereo) .......................................... |
111 |
E-1. DICOM Default Character Repertoire Encoding .................................................................................................. |
123 |
F.1-1. JPEG Modes of Image Coding ...................................................................................................................... |
126 |
F.1-2. Relationship Between the Lossy JPEG Huffman Coding Processes ...................................................................... |
126 |
F.1-5. Identification of JPEG Coding Processes in DICOM .......................................................................................... |
126 |
G.4-1. Organization of RLE Compressed Frame ....................................................................................................... |
130 |
G.5-1. Ordering of the Offsets Within the RLE Header ................................................................................................ |
131 |
G.6-1. Example of Elements for an Encoded YCbCr RLE Three-Frame Image with Basic Offset Table ................................. |
131 |
G.6-1b. Example of Elements for an Encoded YCbCr RLE Three-Frame Image with Basic Offset Table (continued) ............... |
132 |
G.6-2. Example of Encoded YCbCr RLE Compressed Frame Item Value ....................................................................... |
132 |
H.1-1. ISO/IEC 2022 Escape Sequence for ISO-IR 13 and ISO-IR 14 ............................................................................ |
133 |
H.1-2. ISO/IEC 2022 Escape Sequence for ISO-IR 87 and ISO-IR 159 .......................................................................... |
134 |
H.2-1. Character Sets for the Japanese language in DICOM and Internet practice ........................................................... |
134 |
H.2-2. Control Characters Supported in DICOM and Internet practice ............................................................................ |
135 |
- Standard -
Page 10 |
DICOM PS3.5 2020a - Data Structures and Encoding |
|
H.3-1. Character Sets and Escape Sequences Used in Example 1 ............................................................................... |
136 |
|
H.3-2. Character Sets and Escape Sequences Used in Example 2 ............................................................................... |
137 |
|
I.1-1. ISO/IEC 2022 Escape Sequence for ISO-IR 149 ............................................................................................... |
139 |
|
I.3-1. Character Sets and Escape Sequences Used in the Examples ............................................................................. |
141 |
|
K.1-1. ISO/IEC 2022 Escape Sequence for ISO-IR 58 ................................................................................................ |
147 |
|
K.3-1. Character Sets and Escape Sequences used in the Examples of Person Name ...................................................... |
148 |
- Standard -