<?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 RGBToHLS in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToHLS/m-p/1090094#M24940</link>
    <description>&lt;P&gt;In the headers and documentation for&amp;nbsp;ippiRGBToHLS (both for ipp v9 and v2017) the following pseudo-code is given&lt;/P&gt;

&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #009408"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;if R = M2 then H = Cb - Cg&lt;/P&gt;

&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #009408"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if G = M2 then H = 2 + Cr - Cb&lt;/P&gt;

&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #009408"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if B = M2 then H = 4 + Cg - Cr&lt;/P&gt;

&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #009408"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;referring to&amp;nbsp;&lt;/P&gt;

&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #009408"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;David F.Rogers&lt;/P&gt;

&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #009408"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Procedural Elements for Computer Graphics&lt;/P&gt;

&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #009408"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1985.pp.(403-406)&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;However, in that book (2nd ed. 1998) on page 629 I read&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 12px/normal Monaco; color: rgb(0, 148, 8); "&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if R = M1 then H = Cb - Cg&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 12px/normal Monaco; color: rgb(0, 148, 8); "&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if G = M1 then H = 2 + Cr - Cb&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 12px/normal Monaco; color: rgb(0, 148, 8); "&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if B = M1 then H = 4 + Cg - Cr&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 12px/normal Monaco; color: rgb(0, 148, 8); "&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;and this does give different results. I haven't checked what ipp actually does, but at least there is a discrepancy in the documentation and headers.&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Regards,&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Adriaan van Os&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 24 Sep 2016 09:43:42 GMT</pubDate>
    <dc:creator>Adriaan_van_Os</dc:creator>
    <dc:date>2016-09-24T09:43:42Z</dc:date>
    <item>
      <title>RGBToHLS</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToHLS/m-p/1090094#M24940</link>
      <description>&lt;P&gt;In the headers and documentation for&amp;nbsp;ippiRGBToHLS (both for ipp v9 and v2017) the following pseudo-code is given&lt;/P&gt;

&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #009408"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;if R = M2 then H = Cb - Cg&lt;/P&gt;

&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #009408"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if G = M2 then H = 2 + Cr - Cb&lt;/P&gt;

&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #009408"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if B = M2 then H = 4 + Cg - Cr&lt;/P&gt;

&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #009408"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;referring to&amp;nbsp;&lt;/P&gt;

&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #009408"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;David F.Rogers&lt;/P&gt;

&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #009408"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Procedural Elements for Computer Graphics&lt;/P&gt;

&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco; color: #009408"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 1985.pp.(403-406)&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;However, in that book (2nd ed. 1998) on page 629 I read&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 12px/normal Monaco; color: rgb(0, 148, 8); "&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if R = M1 then H = Cb - Cg&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 12px/normal Monaco; color: rgb(0, 148, 8); "&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if G = M1 then H = 2 + Cr - Cb&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 12px/normal Monaco; color: rgb(0, 148, 8); "&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if B = M1 then H = 4 + Cg - Cr&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 12px/normal Monaco; color: rgb(0, 148, 8); "&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;and this does give different results. I haven't checked what ipp actually does, but at least there is a discrepancy in the documentation and headers.&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Regards,&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Adriaan van Os&lt;/P&gt;

&lt;P style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2016 09:43:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToHLS/m-p/1090094#M24940</guid>
      <dc:creator>Adriaan_van_Os</dc:creator>
      <dc:date>2016-09-24T09:43:42Z</dc:date>
    </item>
    <item>
      <title>Hi Adriaan:</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToHLS/m-p/1090095#M24941</link>
      <description>&lt;P&gt;Hi Adriaan:&lt;/P&gt;

&lt;P&gt;It should be the mistake of document. I tested RGBToHLS function with simply code. The result is correct.&lt;/P&gt;

&lt;P&gt;For instance, I tested with value of RGB is {56,45,36}, the output of MKL ippi&lt;SPAN style="font-size: 13.008px;"&gt;RGBToHLS_8u_C3R function is like below:&lt;BR /&gt;
	&lt;IMG alt="" src="https://community.intel.com/file/526030/download" /&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;And you could calculate the get value of H,L,S:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;H=19/255*360=26.8 &amp;nbsp; &amp;nbsp;same as &amp;nbsp; &amp;nbsp;60*(&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;G - B&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px;"&gt;)/(Max-Min)&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;L=46/255*100%=18&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;S=55/255*100%=21.6&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;Thank you for posting the mistake of developer guide document. We will fix it.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/SPAN&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 07:33:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToHLS/m-p/1090095#M24941</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2016-09-26T07:33:10Z</dc:date>
    </item>
    <item>
      <title>Hi Adriaan,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToHLS/m-p/1090096#M24942</link>
      <description>&lt;P&gt;Hi Adriaan,&lt;/P&gt;

&lt;P&gt;The problem has been fixed in document, please &lt;A href="https://software.intel.com/en-us/node/503992"&gt;refer&lt;/A&gt; to have a check.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 02:24:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToHLS/m-p/1090096#M24942</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2017-04-01T02:24:58Z</dc:date>
    </item>
  </channel>
</rss>

