<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic I have understood that in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Dicom-ReadImageRLE-bug-with-16-bit/m-p/919662#M15508</link>
    <description>&lt;P&gt;I have understood that samples are end-of-life, but I also posted about that in the sticky note.&lt;/P&gt;

&lt;P&gt;Just curious!&lt;/P&gt;</description>
    <pubDate>Thu, 28 Nov 2013 08:25:41 GMT</pubDate>
    <dc:creator>Thomas_Jensen1</dc:creator>
    <dc:date>2013-11-28T08:25:41Z</dc:date>
    <item>
      <title>Dicom ReadImageRLE bug with 16-bit</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Dicom-ReadImageRLE-bug-with-16-bit/m-p/919660#M15506</link>
      <description>&lt;P&gt;I think there is a bug in the IPP samples (ipp-samples.8.0.0.005), dicom.cpp, function ReadImageRLE().&lt;/P&gt;

&lt;P&gt;With 16-bit RLE-encoded data, the bug surfaces:&lt;/P&gt;

&lt;P&gt;&amp;nbsp; if(precision&amp;nbsp; &amp;gt; 8)&lt;BR /&gt;
	&amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; ippsSwapBytes_16u_I((Ipp16u*)decData, width * height);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; image.CopyFrom((Ipp16s*)decData, step, roi);&amp;nbsp;&amp;nbsp;&amp;nbsp; // BUG&lt;BR /&gt;
	&amp;nbsp; }&lt;BR /&gt;
	&amp;nbsp; else&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; image.CopyFrom(decData, step, roi);&lt;/P&gt;

&lt;P&gt;The step parameter is wrong. It is a copy of image.Step(), and it should be the step of the decData buffer, which is width*2.&lt;/P&gt;

&lt;P&gt;The bug presents itself with either scanline mismatches in the resulting image, or with an AV because of buffer overflow.&lt;/P&gt;

&lt;P&gt;Also, possibly Ipp16u should be used in CopyFrom, since pixels are usually 16u. Otherwise, the Dicom tag Pixel Representation should be used to determine if the pixels are signed or not.&lt;/P&gt;

&lt;P&gt;Suggestion:&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; image.CopyFrom((Ipp16u*)decData, width*2, roi);&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2013 10:47:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Dicom-ReadImageRLE-bug-with-16-bit/m-p/919660#M15506</guid>
      <dc:creator>Thomas_Jensen1</dc:creator>
      <dc:date>2013-11-26T10:47:36Z</dc:date>
    </item>
    <item>
      <title>Hi Thomas,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Dicom-ReadImageRLE-bug-with-16-bit/m-p/919661#M15507</link>
      <description>&lt;P&gt;Hi Thomas,&lt;/P&gt;

&lt;P&gt;Many thanks for finding this. Unfortunately, it is impossible for us to update the samples, because we are stopping support of UIC/Picnic samples, due to changed priorities to GPU support mostly.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
	Sergey&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2013 07:47:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Dicom-ReadImageRLE-bug-with-16-bit/m-p/919661#M15507</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2013-11-28T07:47:17Z</dc:date>
    </item>
    <item>
      <title>I have understood that</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Dicom-ReadImageRLE-bug-with-16-bit/m-p/919662#M15508</link>
      <description>&lt;P&gt;I have understood that samples are end-of-life, but I also posted about that in the sticky note.&lt;/P&gt;

&lt;P&gt;Just curious!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2013 08:25:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Dicom-ReadImageRLE-bug-with-16-bit/m-p/919662#M15508</guid>
      <dc:creator>Thomas_Jensen1</dc:creator>
      <dc:date>2013-11-28T08:25:41Z</dc:date>
    </item>
  </channel>
</rss>

