<?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 16u color conversions in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/16u-color-conversions/m-p/1163404#M26672</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RGB.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9772i8B8C9AB17D2242DE/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="RGB.png" alt="RGB.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;This shows a histogram created with&amp;nbsp;ippiHistogram_16u_C4R from the 16u RGB image at&amp;nbsp;&lt;A href="http://adriaan.biz/preview/DSCA_002205-preview.tif"&gt;http://adriaan.biz/preview/DSCA_002205-preview.tif&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="HSV.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9773iB9D67B62BE76C74A/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="HSV.png" alt="HSV.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;The histogram of the same 16u RGB image after a call to&amp;nbsp;ippiRGBToHSV_16u_AC4R and&amp;nbsp;ippiHSVToRGB_16u_AC4R.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="HLS.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9774i5541906963DC7381/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="HLS.png" alt="HLS.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;The histogram of the same 16u RGB image after a call to&amp;nbsp;&lt;/SPAN&gt;ippiRGBToHLS_16u_AC4R and&amp;nbsp;ippiHLSToRGB_16u_AC4R.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="XYZ.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9775i263349549B763518/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="XYZ.png" alt="XYZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;The histogram of the same 16u RGB image after a call to&amp;nbsp;&lt;/SPAN&gt;ippiRGBToXYZ_16u_AC4R and&amp;nbsp;ippiXYZToRGB_16u_AC4R.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Luv.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9776i36F3974FE4A19C45/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Luv.png" alt="Luv.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;The histogram of the same 16u RGB image after a call to&amp;nbsp;&lt;/SPAN&gt;ippiRGBToLUV_16u_AC4R and&amp;nbsp;ippiLUVToRGB_16u_AC4R.&lt;/P&gt;

&lt;P&gt;The histograms show that the RGB to HSV and HLS conversions (and back to RGB) are good. The RGB to XYZ conversion (and back) isn't precise in the high tones. The RGB to LUV conversion (and back) looses information in the high tones. I think 16u is precise enough that the XYZ and LUV round-trip conversions should be better. So, I am reporting this as a bug.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Adriaan van Os&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 26 Nov 2017 19:44:48 GMT</pubDate>
    <dc:creator>Adriaan_van_Os</dc:creator>
    <dc:date>2017-11-26T19:44:48Z</dc:date>
    <item>
      <title>16u color conversions</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/16u-color-conversions/m-p/1163404#M26672</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RGB.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9772i8B8C9AB17D2242DE/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="RGB.png" alt="RGB.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;This shows a histogram created with&amp;nbsp;ippiHistogram_16u_C4R from the 16u RGB image at&amp;nbsp;&lt;A href="http://adriaan.biz/preview/DSCA_002205-preview.tif"&gt;http://adriaan.biz/preview/DSCA_002205-preview.tif&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="HSV.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9773iB9D67B62BE76C74A/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="HSV.png" alt="HSV.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;The histogram of the same 16u RGB image after a call to&amp;nbsp;ippiRGBToHSV_16u_AC4R and&amp;nbsp;ippiHSVToRGB_16u_AC4R.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="HLS.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9774i5541906963DC7381/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="HLS.png" alt="HLS.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;The histogram of the same 16u RGB image after a call to&amp;nbsp;&lt;/SPAN&gt;ippiRGBToHLS_16u_AC4R and&amp;nbsp;ippiHLSToRGB_16u_AC4R.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="XYZ.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9775i263349549B763518/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="XYZ.png" alt="XYZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;The histogram of the same 16u RGB image after a call to&amp;nbsp;&lt;/SPAN&gt;ippiRGBToXYZ_16u_AC4R and&amp;nbsp;ippiXYZToRGB_16u_AC4R.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Luv.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9776i36F3974FE4A19C45/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Luv.png" alt="Luv.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;The histogram of the same 16u RGB image after a call to&amp;nbsp;&lt;/SPAN&gt;ippiRGBToLUV_16u_AC4R and&amp;nbsp;ippiLUVToRGB_16u_AC4R.&lt;/P&gt;

&lt;P&gt;The histograms show that the RGB to HSV and HLS conversions (and back to RGB) are good. The RGB to XYZ conversion (and back) isn't precise in the high tones. The RGB to LUV conversion (and back) looses information in the high tones. I think 16u is precise enough that the XYZ and LUV round-trip conversions should be better. So, I am reporting this as a bug.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Adriaan van Os&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2017 19:44:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/16u-color-conversions/m-p/1163404#M26672</guid>
      <dc:creator>Adriaan_van_Os</dc:creator>
      <dc:date>2017-11-26T19:44:48Z</dc:date>
    </item>
    <item>
      <title>There may be a drawing or</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/16u-color-conversions/m-p/1163405#M26673</link>
      <description>&lt;P&gt;There may be a drawing or creation error in the histograms. I will investigate that further. For the moment, please forget about the above post.&amp;nbsp;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;I apologize.for the noise,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;Adriaan van Os&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2017 20:36:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/16u-color-conversions/m-p/1163405#M26673</guid>
      <dc:creator>Adriaan_van_Os</dc:creator>
      <dc:date>2017-11-26T20:36:25Z</dc:date>
    </item>
    <item>
      <title>The histograms in my post</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/16u-color-conversions/m-p/1163406#M26674</link>
      <description>&lt;P&gt;The histograms in my post above are wrong. The cause is in the parameters that have to be passed to&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;ippiHistogram_16u_C4R. For a 256 bin histogram you have to pass:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp; lowerLevel = 0.0, upperLevel = 65536.0. Levels = 257&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;I understand the analogy with non-uniform histograms, but for uniform histograms this is rather misleading. The code example in the Reference Manual fell into the same trap, as it passes&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;Ipp32f upperLevel[] = {255}&lt;/P&gt;

&lt;P&gt;instead of&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;Ipp32f upperLevel[] = {256}&lt;/P&gt;

&lt;P&gt;I now have the correct histograms, below.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RGB.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9777i07580DEBE0C6F399/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="RGB.png" alt="RGB.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="HSV.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9778i5C4FFCE918C526E5/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="HSV.png" alt="HSV.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="HLS.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9779i4AC4847A07B0F66E/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="HLS.png" alt="HLS.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="XYZ.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9780i56AE6F16CC174A1A/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="XYZ.png" alt="XYZ.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Luv.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/9781i3750ACA00F685567/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Luv.png" alt="Luv.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;We see that XYZ conversion loses information.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Adriaan van Os&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 08:02:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/16u-color-conversions/m-p/1163406#M26674</guid>
      <dc:creator>Adriaan_van_Os</dc:creator>
      <dc:date>2017-11-27T08:02:35Z</dc:date>
    </item>
    <item>
      <title>Ping.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/16u-color-conversions/m-p/1163407#M26675</link>
      <description>&lt;P&gt;Ping.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 13:41:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/16u-color-conversions/m-p/1163407#M26675</guid>
      <dc:creator>Adriaan_van_Os</dc:creator>
      <dc:date>2017-12-05T13:41:03Z</dc:date>
    </item>
    <item>
      <title>Hi Adriaan.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/16u-color-conversions/m-p/1163408#M26676</link>
      <description>&lt;P&gt;Hi Adriaan.&lt;/P&gt;

&lt;P&gt;Thanks for your permanently feedback to IPP. Could you please provide reproducer with input image, reference image and IPP output for your case?&amp;nbsp;This reproducer&amp;nbsp;helps to understand your&amp;nbsp;issue and develop fix if necessary.&lt;/P&gt;

&lt;P&gt;Thanks.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 21:54:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/16u-color-conversions/m-p/1163408#M26676</guid>
      <dc:creator>Andrey_B_Intel</dc:creator>
      <dc:date>2017-12-05T21:54:46Z</dc:date>
    </item>
    <item>
      <title> </title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/16u-color-conversions/m-p/1163409#M26677</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The URL for the input image is listed above. The reproducer is described above, call&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 14.4px;"&gt;ippiHistogram_16u_C4R for the input image, either alone or after a call to the color conversion routine pairs, mentioned above. The output image is what you get as a result. For a comparison, you can print or display the result of ippiHistogram_16u_C4R&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 14.4px;"&gt;. Alternatively, you can load&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 14.4px;"&gt;the input and the output image into&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 14.4px;"&gt;&amp;nbsp;any software that displays histograms&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The wrong example code can be found in the Ippi Reference Manual, as described above.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 14.4px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 14.4px;"&gt;Adriaan van Os&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 22:37:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/16u-color-conversions/m-p/1163409#M26677</guid>
      <dc:creator>Adriaan_van_Os</dc:creator>
      <dc:date>2017-12-05T22:37:33Z</dc:date>
    </item>
  </channel>
</rss>

