<book xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink" version="5.0">
    <title>CP-1678</title>
  <subtitle>Use of JPEG Family Transfer Syntaxes rather than RLE for YBR_FULL</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>Assigned</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>2017/01/24</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 xl: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>David Clunie</para><para><link xl:href="mailto:dclunie@dclunie.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>2016/12/05</para></td>
            </tr>
        </informaltable>
        <informaltable rules="all" frame="box">
            <tr>
              <td rowspan="1" colspan="1" valign="top"><para>Correction Number CP-1678</para></td>
            </tr>
            <tr>
              <td rowspan="1" colspan="1" valign="top"><para>Log Summary: Use of JPEG Family Transfer Syntaxes rather than RLE for YBR_FULL</para></td>
            </tr>
            <tr>
                <td rowspan="1" colspan="1" valign="top">
                    <para>Name of Standard</para>
                    <para>PS3.3, PS3.5</para>
                </td>
            </tr>
            <tr>
                <td rowspan="1" colspan="1" valign="top"><para>Rationale for Correction:</para>
                  <para>Traditionally,the YBR_FULL Photometric Interpretation has been used only with the RLE Transfer Syntax and only for Ultrasound images.</para>
                  <para>Further, for US images, the Planar Configuration for YBR_FULL is constrained to 1, since that is the only Planar Configuration used for RLE.</para>
                  <para>The YBR_FULL Photometric Interpretation cannot be converted losslessly into RGB or YBR_RCT, so it is desirable to retain the YBR_FULL encoding when decompressing or recompressing with lossless/reversible JPEG family of Transfer Syntaxes.</para>
                  <para>The JPEG family of Transfer Syntaxes use a Planar Configuration of 0, and there is no reason to constrain
                    the Planar Configuration of uncompressed images.</para>
                  <para>Accordingly, relax the constraint on US Planar Configuration in the IOD (but do not change the Media Application Profile).</para>
          <para>Note that there are currently no constrains on any other IODs wrt. use of YBR_FULL, only Ultrasound, and it is desirable that archives, toolkits and viewers be able to handle Photometric Interpretation, Planar Configuration and Transfer Syntaxes in a generic manner regardless of the IOD.</para>
                  <para><emphasis role="italic">[Ed. Note. The definition of the "separate segments" for RLE encoding is somewhat convoluted given the definition of the Composite Pixel Code. Does this need improvement?]</emphasis></para>
                </td>
            </tr>
            <tr>
                <td rowspan="1" colspan="1" valign="top">Correction Wording:</td>
            </tr>
        </informaltable>
      
      
    </chapter>
    <chapter>
        <title/>
        
      <informaltable rules="all" frame="box">
        <tr>
          <td>
            <para><emphasis role="italic">Amend DICOM PS3.3 as follows (changes to existing text are bold and <emphasis role="bold"><emphasis role="underline">underlined</emphasis></emphasis> for additions and <emphasis role="bold"><emphasis role="strikethrough">struckthrough</emphasis></emphasis> for removals):</emphasis></para>
          </td>
        </tr>
      </informaltable>
      
      <section label="C.7.6.3.1.1" status="6" xml:id="sect_C.7.6.3.1.1">
        <title>Samples Per Pixel</title>
        <para xml:id="para_9efe0faa-7b11-4bd9-9518-10e9a0dc6d47">...</para>
        <para xml:id="para_798aae68-fbc3-4de5-8bc1-cc1c8159c3c1">The data in each pixel may be represented as a "Composite Pixel Code". If Samples Per Pixel is one, the Composite Pixel Code is just the "n" bit pixel sample, where "n" = Bits Allocated. If Samples Per Pixel is greater than one, Composite Pixel Code is a "k" bit concatenation of samples, where "k" = Bits Allocated multiplied by Samples Per Pixel, and with the sample representing the vector color designated first in the Photometric Interpretation name comprising the most significant bits of the Composite Pixel Code, followed in order by the samples representing the next vector colors, with the sample representing the vector color designated last in the Photometric Interpretation name comprising the least significant bits of the Composite Pixel Code. For example, for Photometric Interpretation = "RGB", the most significant "Bits Allocated" bits contain the Red sample, the next "Bits Allocated" bits contain the Green sample, and the least significant "Bits Allocated"
          bits contain the Blue sample.</para>
      </section>
      
      <section label="C.8.5.6.1.16" status="6" xml:id="sect_C.8.5.6.1.16">
        <title>Planar Configuration</title>
        <para xml:id="para_e6482045-1b8f-4a38-83d3-905165a7ebd7">For US Images, Planar Configuration (0028,0006) is specified to use the following values for specific Photometric Interpretations:</para>
        <table frame="box" label="C.8-23" rules="all" xml:id="table_C.8-23">
          <caption>US Planar Configuration</caption>
          <thead>
            <tr valign="top">
              <th align="center" colspan="1" rowspan="1">
                <para xml:id="para_c3991e48-e96f-446a-8740-189a5518d5be">
                  <emphasis role="bold">Photometric Interpretation</emphasis>
                </para>
              </th>
              <th align="center" colspan="1" rowspan="1">
                <para xml:id="para_bd64ab14-ad84-4aec-829b-394eeb45c01a">
                  <emphasis role="bold">Planar Configuration Value</emphasis>
                </para>
              </th>
            </tr>
          </thead>
          <tbody>
            <tr valign="top">
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_d37ef974-6f6a-4a9b-99b2-e4bf909bc799">RGB</para>
              </td>
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_ee37d0ed-e83f-44bc-b968-439091cb7c96">0 - color-by-pixel, or</para>
                <para xml:id="para_023163f6-ddd5-4b40-869e-57bb3ae0d5e4">1 - color-by-plane</para>
              </td>
            </tr>
            <tr valign="top">
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_ee93d8e8-b1bb-4dbe-9202-720a1d32feb4">YBR_FULL</para>
              </td>
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_b589f6c2-7397-47f2-8f9e-0cc0f5c22ef2"><emphasis role="bold"><emphasis role="underline">0 or 1 if uncompressed</emphasis></emphasis></para>
              <para><emphasis role="bold"><emphasis role="underline">0 if lossless JPEG, lossless JPEG-LS or reversible JPEG 2000</emphasis></emphasis></para>
              <para>1<emphasis role="bold"><emphasis role="underline"> if RLE</emphasis></emphasis></para>
              </td>
            </tr>
            <tr valign="top">
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_f87afa49-3aa7-4ece-bceb-b9c2a9fd8917">YBR_FULL_422</para>
              </td>
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_c6c5809c-cbfb-43c0-b7d7-3a53fee8df27">0</para>
              </td>
            </tr>
            <tr valign="top">
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_b791b571-ff82-4c01-bff9-1e9f698ba6b0">YBR_PARTIAL_422</para>
              </td>
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_80dee116-3edd-4ea4-8957-97fca768032b">0</para>
              </td>
            </tr>
            <tr valign="top">
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_fe7ec753-0580-4afb-9402-c30bccc1f068">YBR_RCT</para>
              </td>
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_45c9674d-f0a8-4cac-a5f6-c7fd7624a78e">0</para>
              </td>
            </tr>
            <tr valign="top">
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_6e06d97e-e3a1-4929-bff4-5f71a8a0f462">YBR_ICT</para>
              </td>
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_a572a1a1-010f-4c3f-b794-ab75e5fb384e">0</para>
              </td>
            </tr>
            <tr valign="top">
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_5243007b-3f35-4f15-bf2e-67642695f58c">YBR_PARTIAL_420</para>
              </td>
              <td align="left" colspan="1" rowspan="1">
                <para xml:id="para_33f42dc2-60f0-46b0-a146-dc663233ad24">0</para>
              </td>
            </tr>
          </tbody>
        </table>
      </section>
      
     
    </chapter>
  
  <chapter>
    <title/>
    
    <informaltable rules="all" frame="box">
      <tr>
        <td>
          <para><emphasis role="italic">Amend DICOM PS3.5 as follows (changes to existing text are bold and <emphasis role="bold"><emphasis role="underline">underlined</emphasis></emphasis> for additions and <emphasis role="bold"><emphasis role="strikethrough">struckthrough</emphasis></emphasis> for removals):</emphasis></para>
        </td>
      </tr>
    </informaltable>
    
    <section label="A.4.2" status="3" xml:id="sect_A.4.2">
      <title>RLE Compression</title>
      <para xml:id="para_51630298-8d0b-4278-a3cb-1d87f0f09fe9">Annex G defines a RLE Compression Transfer Syntax. This transfer Syntax is identified by the UID value "1.2.840.10008.1.2.5". If the object allows multi-frame images in the pixel data field, then each frame shall be encoded separately. Each frame shall be encoded in one and only one Fragment (see Section 8.2).</para>
    </section>
    
    <section label="G.2" status="2" xml:id="sect_G.2">
      <title>Byte Segments</title>
      <para xml:id="para_fdeeb53a-6274-4532-ae75-600690b410d7">A Byte Segment is a series of bytes generated by decomposing the Composite Pixel Code (see PS3.3).</para>
      <para xml:id="para_6d3dcdf2-e9ae-4170-a5da-3168ac985140">If the Composite Pixel Code is not an integral number of bytes in size, sufficient Most Significant zero bits are added to make it an integral byte size. This is known as the Padded Composite Pixel Code.</para>
      <para xml:id="para_4b175cb6-fe3d-487b-a2c3-89bb68342b28">The first Segment is generated by stripping off the most significant byte of each Padded Composite Pixel Code and ordering these bytes sequentially. The second Segment is generated by repeating this process on the stripped Padded Composite Pixel Code continuing until the last Pixel Segment is generated by ordering the least significant byte of each Padded Component Pixel Code sequentially.</para>
      <note>
        <orderedlist>
          <listitem>
            <para xml:id="para_e077ba60-fc25-41b5-8058-45dabdd41a7f">If Photometric Interpretation (0028, 0004) equals RGB and Bits Stored equals 8, then three Segments are generated. The first one holds all the Red values, the second all the Green values, and the third all the Blue values.</para>
          </listitem>
          <listitem>
            <para><emphasis role="bold"><emphasis role="underline">The use of separate segments implies that the Planar Configuration (0028,0006) will always be 1 for RLE compressed images.</emphasis></emphasis></para>
          </listitem>
        </orderedlist>
      </note>
    </section>
    
  </chapter>
  
  <chapter>
    <title/>
    
    <informaltable rules="all" frame="box">
      <tr>
        <td>
          <para><emphasis role="italic">For reference unchanged DICOM PS3.11:</emphasis></para>
        </td>
      </tr>
    </informaltable>
    
    <section label="C.3.1.1" status="4" xml:id="sect_C.3.1.1">
      <title>Ultrasound Single and Multi-frame Pixel Formats Supported</title>
      <para xml:id="para_598408ae-1b4d-402c-998a-13c07d260fec">The STD-US application profile requires that all ultrasound image objects only be stored using the values described in PS3.3 US Image Module and the specializations used for the Ultrasound Single and Multi-Frame IODs.</para>
      <para xml:id="para_816c905b-ecef-46b7-9e4c-d9d4b635b0f3">In the role of FS-Updater or FS-Creator the application can choose any of the supported Photometric Interpretations described in PS3.3 US Image Module to create an IOD. In the role of FS-Reader, an application shall support all Photometric Interpretations described in PS3.3 US Image Module.</para>
      <para xml:id="para_3ba1db63-5c64-4c50-a7e2-745423353760">
        <xref linkend="table_C.3-2" xrefstyle="select: label"/> describes restrictions on the use of various Transfer Syntaxes with the supported Photometric Interpretations for both single and multi-frame images.</para>
      <table frame="box" label="C.3-2" rules="all" xml:id="table_C.3-2">
        <caption>Defined Photometric Interpretation and Transfer Syntax Pairs</caption>
        <thead>
          <tr valign="top">
            <th align="center" colspan="1" rowspan="1">
              <para xml:id="para_f21a76af-6ead-48c0-a14e-787e25a01f49">
                <emphasis role="bold">Photometric Interpretation Value</emphasis>
              </para>
            </th>
            <th align="center" colspan="1" rowspan="1">
              <para xml:id="para_148958d5-632d-4c8a-8e67-1177d05f9037">
                <emphasis role="bold">Transfer Syntax</emphasis>
              </para>
            </th>
            <th align="center" colspan="1" rowspan="1">
              <para xml:id="para_3b6ca0a9-363c-4276-a85b-a04adb2b258f">
                <emphasis role="bold">Transfer Syntax UID</emphasis>
              </para>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr valign="top">
            <td align="left" colspan="1" rowspan="1">
              <para xml:id="para_ab5533f2-1ca6-4a80-8f74-84f5fe06ef38">MONOCHROME2</para>
            </td>
            <td align="left" colspan="1" rowspan="1">
              <para xml:id="para_cb7cd602-5ee1-465a-bda0-7f1d073e90e6">Uncompressed RLE</para>
              <para xml:id="para_f8e87ae4-75f1-45c4-9e0b-5b699272ab25">Lossless Image Compression</para>
            </td>
            <td align="left" colspan="1" rowspan="1">
              <para xml:id="para_54e9a5fe-f87e-41f6-a533-a84f31b9959f">1.2.840.10008.1.2.1</para>
              <para xml:id="para_b0c77b38-ab38-4cd1-b74f-5ca5b622bf3e">1.2.840.10008.1.2.5</para>
            </td>
          </tr>
          <tr valign="top">
            <td align="left" colspan="1" rowspan="1">
              <para xml:id="para_df20ab76-869c-49f9-9cbe-f005f3661bdc">RGB</para>
            </td>
            <td align="left" colspan="1" rowspan="1">
              <para xml:id="para_7869ca6e-aa21-4a0b-8b82-0b02d26109bc">Uncompressed</para>
              <para xml:id="para_1ffe6de5-d7cb-4463-8448-b71c2f6458d3">RLE Lossless Image Compression</para>
            </td>
            <td align="left" colspan="1" rowspan="1">
              <para xml:id="para_5558ab0c-5813-42ef-a866-e2a7751174bb">1.2.840.10008.1.2.1</para>
              <para xml:id="para_17a281c2-2552-44d4-ba5e-b8dcc401df7b">1.2.840.10008.1.2.5</para>
            </td>
          </tr>
          <tr valign="top">
            <td align="left" colspan="1" rowspan="1">
              <para xml:id="para_0f5f5f2d-378a-4f1b-8d84-397dc66fe779">PALETTE COLOR</para>
            </td>
            <td align="left" colspan="1" rowspan="1">
              <para xml:id="para_ee5c3414-0cac-4a59-b368-16d1a07edb68">Uncompressed</para>
              <para xml:id="para_87109394-4f34-4a1a-9f73-81a7fa5462af">RLE Lossless Image Compression</para>
            </td>
            <td align="left" colspan="1" rowspan="1">
              <para xml:id="para_f9d3564e-03d0-4ab4-bc13-43ac32890918">1.2.840.10008.1.2.1</para>
              <para xml:id="para_f44352b4-fb90-4859-a700-2276df45d809">1.2.840.10008.1.2.5</para>
            </td>
          </tr>
          <tr valign="top">
            <td align="left" colspan="1" rowspan="1">
              <para xml:id="para_c6c9b008-5c4e-4f4f-8a1a-7f0238125e2d">YBR_FULL</para>
            </td>
            <td align="left" colspan="1" rowspan="1">
              <para xml:id="para_8100adcc-fc89-430b-9967-38870d6b25ef">RLE Lossless Image Compression</para>
            </td>
            <td align="left" colspan="1" rowspan="1">
              <para xml:id="para_d1b508ed-2343-4ce7-b7bd-659166e1bddf">1.2.840.10008.1.2.5</para>
            </td>
          </tr>
          <tr valign="top">
            <td align="left" colspan="1" rowspan="1">
              <para xml:id="para_9ddd6911-e5ab-4954-9eed-51e2b3fb8fc4">YBR_FULL_422</para>
            </td>
            <td align="left" colspan="1" rowspan="1">
              <para xml:id="para_9f3703cc-e159-49e6-9897-657b1d1a22a3">Uncompressed</para>
              <para xml:id="para_c6d0c3e0-fb1b-4d90-bb11-3aed6795aa2b">JPEG Lossy</para>
            </td>
            <td align="left" colspan="1" rowspan="1">
              <para xml:id="para_a87b5c44-8d0f-4cc2-b731-426c05bc5bdc">1.2.840.10008.1.2.1</para>
              <para xml:id="para_af9c3eb3-8747-4711-9b3b-764f7ed00019">1.2.840.10008.1.2.4.50</para>
            </td>
          </tr>
          <tr valign="top">
            <td align="left" colspan="1" rowspan="1">
              <para xml:id="para_8d458109-b4af-4527-8643-9676d45f4d95">YBR_PARTIAL_422</para>
            </td>
            <td align="left" colspan="1" rowspan="1">
              <para xml:id="para_d21ae9d7-3b04-4e9f-b1a5-9381b18ce91b">Uncompressed</para>
              <para xml:id="para_e947205f-66a2-4d7d-9e97-abe06b6573d3">JPEG Lossy</para>
            </td>
            <td align="left" colspan="1" rowspan="1">
              <para xml:id="para_71cb8ba4-eaae-4eda-a2e1-2e26ced8d097">1.2.840.10008.1.2.1</para>
              <para xml:id="para_45d2bcac-dda1-4a67-a4f8-89cc82b936a6">1.2.840.10008.1.2.4.50</para>
            </td>
          </tr>
        </tbody>
      </table>
    </section>
  </chapter>
</book>
