<book xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink" version="5.0">
    <title>CP-1565</title>
    <subtitle>Clarify Photometric Interpretation after decompression of compressed Transfer Syntaxes</subtitle>
    <chapter>
        <title/>
        <informaltable rules="all" frame="box">
            <tr>
                <td rowspan="1" colspan="1" valign="top"><para>Status</para></td>
                <td rowspan="1" colspan="1" valign="top"><para>Letter Ballot</para></td>
            </tr>
            <tr>
                <td rowspan="1" colspan="1" valign="top"><para>Date of Last Update</para></td>
                <td rowspan="1" colspan="1" valign="top"><para>2016/05/25</para></td>
            </tr>
            <tr>
                <td rowspan="1" colspan="1" valign="top">
                    <para>Person Assigned</para>
                </td>
                <td rowspan="1" colspan="1" valign="top">
                    <para>David Clunie</para>
                    <para><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="mailto:dclunie@dclunie.com"/></para>
                </td>
            </tr>
            <tr>
                <td rowspan="1" colspan="1" valign="top">
                    <para>Submitter Name</para>
                </td>
                <td rowspan="1" colspan="1" valign="top">
                    <para>Mathieu Malaterre</para>
                    <para><link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="mailto:mathieu.malaterre@gmail.com"/></para>
                </td>
            </tr>
            <tr>
                <td rowspan="1" colspan="1" valign="top">
                    <para>Submission Date</para>
                </td>
                <td rowspan="1" colspan="1" valign="top">
                    <para>2015/12/18</para>
                </td>
            </tr>
        </informaltable>
        <informaltable rules="all" frame="box">
            <tr>
                <td rowspan="1" colspan="1" valign="top">
                    <para>Correction Number CP-1565</para>
                </td>
            </tr>
            <tr>
                <td rowspan="1" colspan="1" valign="top">
                    <para>Log Summary: Clarify Photometric Interpretation after decompression of compressed Transfer Syntaxes</para>
                </td>
            </tr>
            <tr>
                <td rowspan="1" colspan="1" valign="top">
                    <para>Name of Standard</para>
                    <para>PS3.5</para>
                </td>
            </tr>
            <tr>
                <td rowspan="1" colspan="1" valign="top">
                    <para>Rationale for Correction:</para>
                    <para>Photometric Interpretation describes how the Pixel Data is currently encoded, not how it might have previously been encoded in other (e.g., compressed Transfer Syntaxes). The language describing the values to use for specific Transfer Syntaxes can sometimes be misinterpreted as implying that the value should be preserved on decompression and re-encoding, which is not the intent.</para>
                    <para>In the case of JPEG 2000, the use of color transformations is signalled in the bit stream and the Photometric Interpretation is required to be consistent with the bit stream. The circumstances under which other values of Photometric Interpretation may be used are clarified.</para>
                </td>
            </tr>
            <tr>
                <td rowspan="1" colspan="1" valign="top">Correction Wording:</td>
            </tr>
        </informaltable>
    </chapter>
    <chapter>
        <title/>
        <section>
            <title/>
            <informaltable rules="all" frame="box">
                <tr>
                    <td>
                        <para><emphasis role="italic">Amend DICOM PS3.5 as follows:</emphasis></para>
                    </td>
                </tr>
            </informaltable>
        </section>
        <section label="8.2.1" status="3" xml:id="sect_8.2.1">
            <title>JPEG Image Compression</title>
            <para xml:id="para_d1f3d3c5-fcdf-4dc2-b38b-0bd7fbf79491">...</para>
            <para xml:id="para_4bcb841e-c6bf-4e26-82a5-3fad3c942da0">The use of the DICOM Encapsulated Format to support JPEG Compressed Pixel Data requires that the Data Elements that are related to the Pixel Data encoding (e.g., Photometric Interpretation, Samples per Pixel, Planar Configuration, Bits Allocated, Bits Stored, High Bit, Pixel Representation, Rows, Columns, etc.) shall contain values that are consistent with the characteristics of the compressed data stream. The Pixel Data characteristics included in the JPEG Interchange Format shall be used to decode the compressed data stream.</para>
            <note>
                <orderedlist numeration="arabic">
                    <listitem>
                        <para xml:id="para_651e0fda-0843-4bef-b448-30495fd6330f">These requirements were formerly specified in terms of the "uncompressed pixel data from which the compressed data stream was derived". However, since the form of the "original" uncompressed data stream could vary between different implementations, this requirement is now specified in terms of consistency with what is encapsulated.</para>
                        <para xml:id="para_07617cc6-a4a9-4751-9435-7b496910168d">When decompressing, should the characteristics explicitly specified in the compressed data stream (e.g., spatial subsampling or number of components or planar configuration) be inconsistent with those specified in the DICOM Data Elements, those explicitly specified in the compressed data stream should be used to control the decompression. The DICOM data elements, if inconsistent, can be regarded as suggestions as to the form in which an uncompressed Data Set might be encoded.</para>
                    </listitem>
                    <listitem>
                        <para xml:id="para_6424f9ef-dfaa-40ff-9ca9-109d42a93363">Those characteristics not explicitly specified in the compressed data stream (e.g., the color space of the compressed components, which is not specified in the JPEG Interchange Format), or implied by the definition of the compression scheme (e.g., always unsigned in JPEG), can therefore be determined from the DICOM Data Element in the enclosing Data Set. For example a Photometric Interpretation of "YBR_FULL_422" would describe the color space that is commonly used to lossy compress images using JPEG. It is unusual to use an RGB color space for lossy compression, since no advantage is taken of correlation between the red, green and blue components (e.g., of luminance), and poor compression is achieved.</para>
                    </listitem>
                    <listitem>
                        <para xml:id="para_e639eb95-8d71-43a2-9a21-017e0bd8eb56">The JPEG Interchange Format is distinct from the JPEG File Interchange Format (JFIF). The JPEG Interchange Format is defined in <xref linkend="biblio_ISOIEC10918-1"/> section 4.9.1, and refers to the inclusion of decoding tables, as distinct from the "abbreviated format" in which these tables are not sent (and the decoder is assumed to already have them). The JPEG Interchange Format does NOT specify the color space. The JPEG File Interchange Format, not part of the original JPEG standard, but defined in ECMA TR-098, and under development as ISO 101918-5, is often used to store JPEG bit streams in consumer format files, and does include the ability to specify the color space of the components. THE JFIF APP0 marker segment is NOT required to be present in DICOM encapsulated JPEG bit streams, and should not be relied upon to recognize the color space. Its presence is not forbidden (unlike the JP2 information
                            for JPEG 2000 Transfer Syntaxes), but it is recommended that it be absent.</para>
                    </listitem>
                    <listitem>
                        <para xml:id="para_b217610e-776a-4c22-88c2-6c765f687a4b">Should the compression process be incapable of encoding a particular form of pixel data representation (e.g., JPEG cannot encode signed integers, only unsigned integers), then ideally only the appropriate form should be "fed" into the compression process. However, for certain characteristics described in DICOM Data Elements but not explicitly described in the compressed data stream (such as Pixel Representation), then the DICOM Data Element should be considered to describe what has been compressed (e.g., the pixel data really is to be interpreted as signed if Pixel Representation so specifies).</para>
                    </listitem>
                    <listitem>
                        <para xml:id="para_c141d2a1-75f6-426e-85fe-e99495d48030">DICOM Data Elements should not describe characteristics that are beyond the capability of the compression scheme used. For example, JPEG lossy processes are limited to 12 bits, hence the value of Bits Stored should be 12 or less. Bits Allocated is irrelevant, and is likely to be constrained by the Information Object Definition in <olink targetdoc="PS3.3" targetptr="PS3.3" xrefstyle="select: labelnumber"/> to values of 8 or 16. Also, JPEG compressed data streams are always color-by-pixel and should be specified as such (a decoder can essentially ignore this element however as the value for JPEG compressed data is already known).</para>
                    </listitem>
                    <listitem>
                        <para><emphasis role="bold"><emphasis role="underline">If JPEG Compressed Pixel Data is decompressed and re-encoded in Native (uncompressed) form, then the Data Elements that are related to the Pixel Data encoding are updated accordingly. If color components are converted from YBR_FULL_422 to RGB during decompression and Native re-encoding, the Photometric Interpretation will be changed to RGB in the Data Set with the Native encoding.</emphasis></emphasis></para>
                    </listitem>
                </orderedlist>
            </note>
        </section>
        <section label="8.2.2" status="3" xml:id="sect_8.2.2">
            <title>Run Length Encoding Compression</title>
            <para xml:id="para_85ca0802-972c-4db3-bc67-7f344dc8aeb8">...</para>
            <para xml:id="para_f46aa917-6020-441c-a144-02b3a06c3e39">The use of the DICOM Encapsulated Format to support RLE Compressed Pixel Data requires that the Data Elements that are related to the Pixel Data encoding (e.g., Photometric Interpretation, Samples per Pixel, Planar Configuration, Bits Allocated, Bits Stored, High Bit, Pixel Representation, Rows, Columns, etc.) shall contain values that are consistent with the compressed data.</para>
            <note>
                <orderedlist numeration="arabic">
                    <listitem>
                        <para xml:id="para_6f9c3153-4628-4f7e-a842-a7d81a6845ab">These requirements were formerly specified in terms of the "uncompressed pixel data from which the compressed data was derived". However, since the form of the "original" uncompressed data stream could vary between different implementations, this requirement is now specified in terms of consistency with what is encapsulated.</para>
                    </listitem>
                    <listitem>
                        <para xml:id="para_d1bb8f9b-f160-4538-b2db-6717374398e2">Those characteristics not implied by the definition of the compression scheme (e.g., always color-by-plane in RLE), can therefore be determined from the DICOM Data Element in the enclosing Data Set. For example a Photometric Interpretation of "YBR_FULL" would describe the color space that is commonly used to losslessly compress images using RLE. It is unusual to use an RGB color space for RLE compression, since no advantage is taken of correlation between the red, green and blue components (e.g., of luminance), and poor compression is achieved (note however that the conversion from RGB to YBR_FULL is itself lossy. A new photometric interpretation may be proposed in the future that allows lossless conversion from RGB and also results in better RLE compression ratios).</para>
                    </listitem>
                    <listitem>
                        <para xml:id="para_7844c3d7-4b28-4f14-bcf3-19476a836b6b">DICOM Data Elements should not describe characteristics that are beyond the capability of the compression scheme used. For example, RLE compressed data streams (using the algorithm mandated in the DICOM Standard) are always color-by-plane.</para>
                    </listitem>
                    <listitem>
                        <para><emphasis role="bold"><emphasis role="underline">If RLE Compressed Pixel Data is decompressed and re-encoded in Native (uncompressed) form, then the Data Elements that are related to the Pixel Data encoding are updated accordingly. If color components are converted from YBR_FULL to RGB during decompression and Native re-encoding, the Photometric Interpretation will be changed to RGB in the Data Set with the Native encoding. It is permitted, however, to leave the YBR_FULL color components unconverted but decompressed in the Native format, in which case the Photometric Interpretation in the Data Set with the Native encoding would be YBR_FULL.</emphasis></emphasis></para>
                    </listitem>
                </orderedlist>
            </note>
        </section>
        <section label="8.2.3" status="3" xml:id="sect_8.2.3">
            <title>JPEG-LS Image Compression</title>
            <para xml:id="para_eccda448-0381-4c4d-90d9-7e251c4a4e1e">...</para>
            <para xml:id="para_573ea007-d4e1-4c07-a82a-2d6b13d109eb">The use of the DICOM Encapsulated Format to support JPEG-LS Compressed Pixel Data requires that the Data Elements that are related to the Pixel Data encoding (e.g., Photometric Interpretation, Samples per Pixel, Planar Configuration, Bits Allocated, Bits Stored, High Bit, Pixel Representation, Rows, Columns, etc.) shall contain values that are consistent with the characteristics of the compressed data stream. The Pixel Data characteristics included in the JPEG-LS Interchange Format shall be used to decode the compressed data stream.</para>
            <note>
                <orderedlist>
                    <listitem>
                        <para xml:id="para_e40960fc-63dd-45b0-8ed7-993b40cbd763">See also the notes in <xref linkend="sect_8.2.1" xrefstyle="select: label"/>.</para>
                    </listitem>
                    <listitem>
                        <para><emphasis role="bold"><emphasis role="underline">No Photometric Interpretation specific for JPEG-LS is currently defined in DICOM. Annex F of ISO 14495-2 describes a "Sample transformation for inverse colour transform" and a marker segment to encode its parameters, but this is not known to have been implemented. Common practice is to compress the RGB components unconverted, which sacrifices compression performance, and send the Photometric Interpretation as RGB. Though the YBR_RCT Photometric Interpretation and component conversion could theoretically be used, in the absence of DC shifting it results in signed values to be encoded, which are not supported by JPEG-LS.</emphasis></emphasis></para>
                    </listitem>
                    <listitem>
                        <para><emphasis role="bold"><emphasis role="underline">If JPEG-LS Compressed Pixel Data is decompressed and re-encoded in Native (uncompressed) form, then the Data Elements that are related to the Pixel Data encoding are updated accordingly. If color components are converted from any other Photometric Interpretation to RGB during decompression and Native re-encoding, the Photometric Interpretation will be changed to RGB in the Data Set with the Native encoding.</emphasis></emphasis></para>
                    </listitem>
                </orderedlist>
            </note>
        </section>
        <section label="8.2.4" status="3" xml:id="sect_8.2.4">
            <title>JPEG 2000 Image Compression</title>
            <para xml:id="para_e87e36c7-4f0c-49e5-a267-38982870ce88">...</para>
            <para xml:id="para_b8bb4636-3e99-4465-86d3-207414bb06a5">The use of the DICOM Encapsulated Format to support JPEG 2000 Compressed Pixel Data requires that the Data Elements that are related to the Pixel Data encoding (e.g., Photometric Interpretation, Samples per Pixel, Planar Configuration, Bits Allocated, Bits Stored, High Bit, Pixel Representation, Rows, Columns, etc.) shall contain values that are consistent with the characteristics of the compressed data stream. The Pixel Data characteristics included in the JPEG 2000 bit stream shall be used to decode the compressed data stream.</para>
            <note>
                <para xml:id="para_0e5c196d-7b04-42b4-9c18-22c0162d12ca">These requirements are specified in terms of consistency with what is encapsulated, rather than in terms of the uncompressed pixel data from which the compressed data stream may have been derived.</para>
            </note>
            <para xml:id="para_307b3170-88ee-4604-b4c4-958a8cc15009">When decompressing, should the characteristics explicitly specified in the compressed data stream be inconsistent with those specified in the DICOM Data Elements, those explicitly specified in the compressed data stream should be used to control the decompression. The DICOM data elements, if inconsistent, can be regarded as suggestions as to the form in which an uncompressed Data Set might be encoded.</para>
            <para xml:id="para_db847fdd-ca67-4516-bb90-45d161167bee">The JPEG 2000 bit stream specifies whether or not a reversible or irreversible multi-component (color) transformation<emphasis role="bold"><emphasis role="underline"> [ISO 15444-1 Annex G]</emphasis></emphasis>, if any, has been applied. If no multi-component transformation has been applied, then the components shall correspond to those specified by the DICOM Attribute Photometric Interpretation (0028,0004). If the JPEG 2000 Part 1 reversible multi-component transformation has been applied then the DICOM Attribute Photometric Interpretation (0028,0004) shall be YBR_RCT. If the JPEG 2000 Part 1 irreversible multi-component transformation has been applied then the DICOM Attribute Photometric Interpretation (0028,0004) shall be YBR_ICT.</para>
            <note>
                <orderedlist numeration="arabic">
                    <listitem>
                        <para xml:id="para_08197219-168c-4756-88fc-be63881c1cbf">For example, single component may be present, and the Photometric Interpretation (0028,0004) may be MONOCHROME2.</para>
                    </listitem>
                    <listitem>
                        <para><emphasis role="bold"><emphasis role="underline">The application of a JPEG 2000 Part 1 reversible multi-component transformation is signalled in the JPEG 2000 bitstream by a value of 1 rather than 0 in the SGcod Multiple component transformation type of the COD marker segment [ISO 15444-1 Table A.17]. No other value of Photometric Interpretation than YBR_RCT or YBR_ICT is permitted when SGcod Multiple component transformation type is 1.</emphasis></emphasis></para>
                    </listitem>
                    <listitem>
                        <para xml:id="para_0a77cfd2-db8f-40f4-8d23-3a10092406af">Though it would be unusual, would not take advantage of correlation between the red, green and blue components, and would not achieve effective compression, a Photometric Interpretation of RGB could be specified as long as no multi-component transformation<emphasis role="bold"><emphasis role="underline"> [ISO 15444-1 Annex G]</emphasis></emphasis> was specified by the JPEG 2000 bit stream.<emphasis role="bold"><emphasis role="underline"> Alternative methods of decorrelation of the color components than those specified in [ISO 15444-1 Annex G] are permitted as defined in PS3.3, such as a Photometric Interpretation of YBR_FULL; this may be useful when converting existing YBR_FULL Pixel Data (e.g., in a different Transfer Syntax) without further loss.</emphasis></emphasis></para>
                        <para><emphasis role="bold"><emphasis role="underline">In either case (Photometric Interpretation of RGB or YBR_FULL), the value of SGcod Multiple component transformation type would be 0.</emphasis></emphasis></para>
                        <para><emphasis role="bold"><emphasis role="underline">PS3.3 may constrain the values of Photometric Interpretation for specific IODs.</emphasis></emphasis></para>
                    </listitem>
                    <listitem>
                        <para xml:id="para_9146fe8f-7760-48f7-8a52-9c1dbf1ca927">Despite the application of a multi-component color transformation and its reflection in the Photometric Interpretation attribute, the "color space" remains undefined. There is currently no means of conveying "standard color spaces" either by fixed values (such as sRGB) or by ICC profiles. Note in particular that the JP2 file header is not sent in the JPEG 2000 bitstream that is encapsulated in DICOM.</para>
                    </listitem>
                    <listitem>
                        <para><emphasis role="bold"><emphasis role="underline">If JPEG 2000 Compressed Pixel Data is decompressed and re-encoded in Native (uncompressed) form, then the Data Elements that are related to the Pixel Data encoding are updated accordingly. If color components are converted from YBR_ICT or YBR_RCT to RGB during decompression and Native re-encoding, the Photometric Interpretation will be changed to RGB in the Data Set with the Native encoding.</emphasis></emphasis></para>
                    </listitem>
                </orderedlist>
            </note>
            <para xml:id="para_a89ecd90-af2d-401e-99e6-e7ac76600d56">The JPEG 2000 bitstream is capable of encoding both signed and unsigned pixel values, hence the value of Pixel Representation (0028,0103) may be either 0 or 1 depending on what has been encoded (as specified in the SIZ marker segment in the precision and sign of component parameter).</para>
            <para xml:id="para_2b48c289-0ee9-4ec6-9685-99e6a1a9a16f">The value of Planar Configuration (0028,0006) is irrelevant since the manner of encoding components is specified in the JPEG 2000 standard, hence it shall be set to 0.</para>
        </section>
        <section label="8.2.5" status="3" xml:id="sect_8.2.5">
            <title>MPEG2 MP@ML Image Compression</title>
            <para xml:id="para_1f5ce4d4-99d8-4263-8e07-fe67a269ef76">...</para>
            <para xml:id="para_1cbdb168-629e-4145-99a9-4767b0dec92a">The use of the DICOM Encapsulated Format to support MPEG2 MP@ML compressed pixel data requires that the Data Elements that are related to the Pixel Data encoding (e.g., Photometric Interpretation, Samples per Pixel, Planar Configuration, Bits Allocated, Bits Stored, High Bit, Pixel Representation, Rows, Columns, etc.) shall contain values that are consistent with the characteristics of the compressed data stream, with some specific exceptions noted here. The Pixel Data characteristics included in the MPEG2 MP@ML bit stream shall be used to decode the compressed data stream.</para>
            <note>
                <para xml:id="para_afa32905-415a-4f71-98b1-67e8ea4aba49">These requirements are specified in terms of consistency with what is encapsulated, rather than in terms of the uncompressed pixel data from which the compressed data stream may have been derived.</para>
            </note>
            <para xml:id="para_9d54ce83-fbe6-44d9-a910-4c3eae7443be">When decompressing, should the characteristics explicitly specified in the compressed data stream be inconsistent with those specified in the DICOM Data Elements, those explicitly specified in the compressed data stream should be used to control the decompression. The DICOM data elements, if inconsistent, can be regarded as suggestions as to the form in which an uncompressed Data Set might be encoded.</para>
            <para xml:id="para_c268bcf7-3ff6-4626-af47-8aab8feb28ff">The MPEG2 MP@ML bit stream specifies whether or not a reversible or irreversible multi-component (color) transformation, if any, has been applied. If no multi-component transformation has been applied, then the components shall correspond to those specified by the DICOM Attribute Photometric Interpretation (0028,0004). MPEG2 MP@ML applies an irreversible multi-component transformation, so DICOM Attribute Photometric Interpretation (0028,0004) shall be YBR_PARTIAL_420 in the case of multi-component data, and MONOCHROME2 in the case of single component data (even though the MPEG2 bit stream itself is always encoded as three components, one luminance and two chrominance).</para>
            <note>
                <orderedlist>
                    <listitem>
                        <para><emphasis role="bold"><emphasis role="underline">If MPEG2 Compressed Pixel Data is decompressed and re-encoded in Native (uncompressed) form, then the Data Elements that are related to the Pixel Data encoding are updated accordingly. If color components are converted from YBR_PARTIAL_420 to RGB during decompression and Native re-encoding, the Photometric Interpretation will be changed to RGB in the Data Set with the Native encoding.</emphasis></emphasis></para>
                    </listitem>
                    <listitem>
                        <para xml:id="para_1657a855-c8c2-4d9c-a5a6-5c6bf4093180">MPEG2 proposes some video formats. Each of the standards specified is used in a different market, including: ITU-R BT.470-2 System M for SD NTSC and ITU-R BT.470-2 System B/G for SD PAL/SECAM. A PAL based system should therefore be based on ITU-BT.470 System B for each of Color Primaries, Transfer Characteristic (gamma) and matrix coefficients and should take a value of 5 as defined in <xref linkend="biblio_ISOIEC13818-2"/>.</para>
                    </listitem>
                </orderedlist>
            </note>
            <para xml:id="para_72d7f028-ebc5-45f1-a1b4-9c2d077c7e19">...</para>
        </section>
        <section label="8.2.6" status="3" xml:id="sect_8.2.6">
            <title>MPEG2 MP@HL Image Compression</title>
            <para>...</para>
            <para xml:id="para_99b66f2f-df69-4543-9d01-21907b1f3918">The use of the DICOM Encapsulated Format to support MPEG2 MP@HL compressed pixel data requires that the Data Elements that are related to the Pixel Data encoding (e.g., Photometric Interpretation, Samples per Pixel, Planar Configuration, Bits Allocated, Bits Stored, High Bit, Pixel Representation, Rows, Columns, etc.) shall contain values that are consistent with the characteristics of the compressed data stream, with some specific exceptions noted here. The Pixel Data characteristics included in the MPEG2 MP@HL bit stream shall be used to decode the compressed data stream.</para>
            <note>
                <para xml:id="para_49d5c0fa-e261-4974-8d53-d8428ad857b0">These requirements are specified in terms of consistency with what is encapsulated, rather than in terms of the uncompressed pixel data from which the compressed data stream may have been derived.</para>
            </note>
            <para xml:id="para_550767c3-9efa-4014-be77-38e3779c1b6b">When decompressing, should the characteristics explicitly specified in the compressed data stream be inconsistent with those specified in the DICOM Data Elements, those explicitly specified in the compressed data stream should be used to control the decompression. The DICOM data elements, if inconsistent, can be regarded as suggestions as to the form in which an uncompressed Data Set might be encoded.</para>
            <note>
                <para><emphasis role="bold"><emphasis role="underline">If MPEG2 Compressed Pixel Data is decompressed and re-encoded in Native (uncompressed) form, then the Data Elements that are related to the Pixel Data encoding are updated accordingly. If color components are converted from YBR_PARTIAL_420 to RGB during decompression and Native re-encoding, the Photometric Interpretation will be changed to RGB in the Data Set with the Native encoding.</emphasis></emphasis></para>
            </note>
            <para xml:id="para_39989b63-b4d8-46ee-ab01-0f10be3905b3">The requirements are:</para>
            <itemizedlist>
                <listitem>
                    <para xml:id="para_5901446e-9730-4bab-b6e0-c24def204714">Planar Configuration (0028,0006) shall be 0</para>
                    <note>
                        <para xml:id="para_5f4e2958-bb4e-46e7-b3ba-3e5cf5ee3980">The value of Planar Configuration (0028,0006) is irrelevant since the manner of encoding components is specified in the MPEG2 standard, hence it is set to 0.</para>
                    </note>
                </listitem>
                <listitem>
                    <para xml:id="para_6ec13661-b33d-4064-a74a-a46268699647">Samples per Pixel (0028,0002) shall be 3</para>
                </listitem>
                <listitem>
                    <para xml:id="para_fe60ba81-e0d8-4097-a998-470a8a156835">Photometric Interpretation (0028,0004) shall be YBR_PARTIAL_420 or MONOCHROME2</para>
                </listitem>
                <listitem>
                    <para xml:id="para_2eab63a8-e0da-4b56-ad07-efa8d8b65ee5">...</para>
                </listitem>
            </itemizedlist>
            <para xml:id="para_a2b60ac4-725d-4c8d-b02c-9a6f5d45640b">...</para>
        </section>
        <section label="8.2.7" status="3" xml:id="sect_8.2.7">
            <title>MPEG-4 AVC/H.264 HiP@Level4.1 Video Compression</title>
            <para xml:id="para_65917ac3-a992-42eb-9354-ba19938a0b2b">...</para>
            <para xml:id="para_382fd973-3a0c-4bca-9be2-a12b55d74976">The use of the DICOM Encapsulated Format to support MPEG-4 AVC/H.264 compressed pixel data requires that the Data Elements that are related to the Pixel Data encoding (e.g., Photometric Interpretation, Samples per Pixel, Planar Configuration, Bits Allocated, Bits Stored, High Bit, Pixel Representation, Rows, Columns, etc.) shall contain values that are consistent with the characteristics of the compressed data stream, with some specific exceptions noted here. The Pixel Data characteristics included in the MPEG-4 AVC/H.264 bit stream shall be used to decode the compressed data stream.</para>
            <note>
                <para xml:id="para_189b7ade-5a0e-4b48-a83c-a2735266ee5a">These requirements are specified in terms of consistency with what is encapsulated, rather than in terms of the uncompressed pixel data from which the compressed data stream may have been derived.</para>
            </note>
            <para xml:id="para_1e5e3340-6432-49d9-8cdf-21c44d306380">When decompressing, should the characteristics explicitly specified in the compressed data stream be inconsistent with those specified in the DICOM Data Elements, those explicitly specified in the compressed data stream should be used to control the decompression. The DICOM data elements, if inconsistent, can be regarded as suggestions as to the form in which an uncompressed Data Set might be encoded.</para>
            <note>
                <para><emphasis role="bold"><emphasis role="underline">If MPEG-4 Compressed Pixel Data is decompressed and re-encoded in Native (uncompressed) form, then the Data Elements that are related to the Pixel Data encoding are updated accordingly. If color components are converted from YBR_PARTIAL_420 to RGB during decompression and Native re-encoding, the Photometric Interpretation will be changed to RGB in the Data Set with the Native encoding.</emphasis></emphasis></para>
            </note>
            <para xml:id="para_475237f7-b060-4238-a2ea-c4194c317a0a">The requirements are:</para>
            <itemizedlist>
                <listitem>
                    <para xml:id="para_1cbbe360-2540-4190-91ee-b15ad4889d03">Planar Configuration (0028,0006) shall be 0</para>
                </listitem>
                <listitem>
                    <para xml:id="para_45526acd-9d8d-4fae-9f2c-78789ead39a8">Samples per Pixel (0028,0002) shall be 3</para>
                </listitem>
                <listitem>
                    <para xml:id="para_0e6d3a02-d2c9-436f-92bf-abf5e66426d2">Photometric Interpretation (0028,0004) shall be YBR_PARTIAL_420</para>
                </listitem>
                <listitem>
                    <para xml:id="para_dfd4f6f7-f3f4-45ac-875d-22992ce31dfe">...</para>
                </listitem>
            </itemizedlist>
            <para>...</para>
        </section>
        <section label="8.2.8" status="3" xml:id="sect_8.2.8">
            <title>MPEG-4 AVC/H.264 HiP@Level4.2 Video Compression</title>
            <para xml:id="para_0857d3a8-89d3-4fa6-99df-d010578a607b">...</para>
            <para xml:id="para_1cd0da6b-94af-4eda-9f4e-3a4b71727169">The use of the DICOM Encapsulated Format to support MPEG-4 AVC/H.264 compressed pixel data requires that the Data Elements that are related to the Pixel Data encoding (e.g. Photometric Interpretation, Samples per Pixel, Planar Configuration, Bits Allocated, Bits Stored, High Bit, Pixel Representation, Rows, Columns, etc.) shall contain values that are consistent with the characteristics of the compressed data stream, with some specific exceptions noted here. The Pixel Data characteristics included in the MPEG-4 AVC/H.264 bit stream shall be used to decode the compressed data stream.</para>
            <note>
                <para xml:id="para_a11f89e6-4849-4d7e-a930-62ab9e4fb12c">These requirements are specified in terms of consistency with what is encapsulated, rather than in terms of the uncompressed pixel data from which the compressed data stream may have been derived.</para>
            </note>
            <para xml:id="para_ec946e84-eec7-4e63-91e3-4ab0581cda27">When decompressing, should the characteristics explicitly specified in the compressed data stream be inconsistent with those specified in the DICOM Data Elements, those explicitly specified in the compressed data stream should be used to control the decompression. The DICOM data elements, if inconsistent, can be regarded as suggestions as to the form in which an uncompressed data set might be encoded.</para>
            <note>
                <para><emphasis role="bold"><emphasis role="underline">If MPEG-4 Compressed Pixel Data is decompressed and re-encoded in Native (uncompressed) form, then the Data Elements that are related to the Pixel Data encoding are updated accordingly. If color components are converted from YBR_PARTIAL_420 to RGB during decompression and Native re-encoding, the Photometric Interpretation will be changed to RGB in the Data Set with the Native encoding.</emphasis></emphasis></para>
            </note>
            <para xml:id="para_f88bec93-d7a1-4443-a09b-d7b40a577317">The requirements are:</para>
            <itemizedlist>
                <listitem>
                    <para xml:id="para_4260fe92-7704-4986-8093-d94bfeb75c21">Planar Configuration (0028,0006) shall be 0</para>
                </listitem>
                <listitem>
                    <para xml:id="para_bf79123f-5908-421d-8582-b1dae38d79d6">Samples per Pixel (0028,0002) shall be 3</para>
                </listitem>
                <listitem>
                    <para xml:id="para_dffaa66b-6d25-4a04-8c8c-89f3646823ab">Photometric Interpretation (0028,0004) shall be YBR_PARTIAL_420</para>
                </listitem>
                <listitem>
                    <para xml:id="para_05a405b0-ff19-4015-b0eb-1629897b4365">...</para>
                </listitem>
            </itemizedlist>
            <para xml:id="para_c319f8b9-fab2-4ef8-8761-7bc2ea7ec610">...</para>
        </section>
        <section label="8.2.9" status="3" xml:id="sect_8.2.9">
            <title>MPEG-4 AVC/H.264 Stereo HiP@Level4.2 Video Compression</title>
            <para>...</para>
        </section>


        <section>
            <title/>
            <informaltable rules="all" frame="box">
                <tr>
                    <td>
                        <para><emphasis role="italic">For reference, from DICOM PS3.3:</emphasis></para>
                    </td>
                </tr>
            </informaltable>
        </section>
        
        <section label="A.8.5.4" status="4" xml:id="sect_A.8.5.4">
            <title>Multi-frame True Color SC Image IOD Content Constraints</title>
            <para xml:id="para_f0d65dd7-6bcf-4fb7-a281-2a2513af72af">...</para>
            <itemizedlist>
                <listitem>
                    <para xml:id="para_609ed3a4-a36d-4963-bffa-556b0ff252da">Samples per Pixel (0028,0002) shall be 3</para>
                </listitem>
                <listitem>
                    <para xml:id="para_7c596bcb-cf26-4d80-a56b-c48c96cfc03d">Photometric Interpretation (0028,0004) shall be RGB for uncompressed or lossless compressed transfer syntaxes that do not involve color space transformations, YBR_ICT for irreversible JPEG 2000 transfer syntaxes, YBR_RCT for reversible JPEG 2000 transfer syntaxes, YBR_PARTIAL_420 for MPEG2 and MPEG-4 AVC/H.264 transfer syntaxes and YBR_FULL_422 for other lossy compressed transfer syntaxes</para>
                    <note>
                        <para xml:id="para_36f43a08-0225-4b43-bb87-b1e1246ae3dd">Future lossless and lossy transfer syntaxes may lead to the need for new definitions and choices for Photometric Interpretation.</para>
                    </note>
                </listitem>
            </itemizedlist>
        </section>
    </chapter>
</book>
