<?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 Re: Converting Hue to Degrees in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-Hue-to-Degrees/m-p/849496#M6387</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;p.s. I also assumed that Hue was in radians, but am not getting my true value back. &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 28 Apr 2009 02:10:37 GMT</pubDate>
    <dc:creator>rogene</dc:creator>
    <dc:date>2009-04-28T02:10:37Z</dc:date>
    <item>
      <title>Converting Hue to Degrees</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-Hue-to-Degrees/m-p/849495#M6386</link>
      <description>&lt;P&gt;&lt;BR /&gt;I am comparing an image with known HSV to my output using the IPP library. &lt;BR /&gt;&lt;BR /&gt;True Values:&lt;BR /&gt;H 149&lt;BR /&gt;S 80&lt;BR /&gt;V 100&lt;BR /&gt;&lt;BR /&gt;Output from Ipp call converting from RGB to HSV:&lt;BR /&gt;H 64&lt;BR /&gt;S 205&lt;BR /&gt;V 255&lt;BR /&gt;&lt;BR /&gt;If I normalize by 255, &lt;BR /&gt;H 0.25&lt;BR /&gt;S 0.80&lt;BR /&gt;V 1.00&lt;/P&gt;
&lt;P&gt;So, this explains the encoding for S and V.&lt;/P&gt;
&lt;P&gt;What I expect is to multiply the normalized Hue value by 360 to get back the "true" value, which in this case should be 149.As you can see I am getting back 90 instead.&lt;BR /&gt;&lt;BR /&gt;What don't I understand about the IPP representation of Hue?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2009 01:44:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-Hue-to-Degrees/m-p/849495#M6386</guid>
      <dc:creator>rogene</dc:creator>
      <dc:date>2009-04-28T01:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Hue to Degrees</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-Hue-to-Degrees/m-p/849496#M6387</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;p.s. I also assumed that Hue was in radians, but am not getting my true value back. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Apr 2009 02:10:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-Hue-to-Degrees/m-p/849496#M6387</guid>
      <dc:creator>rogene</dc:creator>
      <dc:date>2009-04-28T02:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Hue to Degrees</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-Hue-to-Degrees/m-p/849497#M6388</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;I used a HLS conversion on the same image. &lt;BR /&gt;&lt;BR /&gt;The "true" values:&lt;BR /&gt;H 149&lt;BR /&gt;L 60&lt;BR /&gt;S 100&lt;BR /&gt;&lt;BR /&gt;The values from the HLS:&lt;BR /&gt;H 105&lt;BR /&gt;L 153&lt;BR /&gt;S 255&lt;BR /&gt;&lt;BR /&gt;If I normalize (divide by 255):&lt;BR /&gt;H 0.41&lt;BR /&gt;L 0.6&lt;BR /&gt;S1.0&lt;BR /&gt;&lt;BR /&gt;and then multiply H by 360 and L and S by 100&lt;BR /&gt;H 148&lt;BR /&gt;L 60&lt;BR /&gt;S 100&lt;BR /&gt;&lt;BR /&gt;Not too bad of a match.&lt;BR /&gt;&lt;BR /&gt;So the H in the IPP HLS algorithm gives approxthe right answer, but the H in the IPP HSV algorithm is still a mystery.&lt;BR /&gt;&lt;BR /&gt;Could someone please help explain?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Tue, 28 Apr 2009 03:37:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-Hue-to-Degrees/m-p/849497#M6388</guid>
      <dc:creator>rogene</dc:creator>
      <dc:date>2009-04-28T03:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Hue to Degrees</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-Hue-to-Degrees/m-p/849498#M6389</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
What RGB values you use to get these output HSV?&lt;BR /&gt;&lt;BR /&gt;Vladimir&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Apr 2009 13:23:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-Hue-to-Degrees/m-p/849498#M6389</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2009-04-28T13:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Hue to Degrees</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-Hue-to-Degrees/m-p/849499#M6390</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336498"&gt;Vladimir Dudnik (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;What RGB values you use to get these output HSV?&lt;BR /&gt;&lt;BR /&gt;Vladimir&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thanks for your response. The values I used were:&lt;BR /&gt;&lt;BR /&gt;R 50&lt;BR /&gt;G 255&lt;BR /&gt;B 150&lt;BR /&gt;&lt;BR /&gt;I added the testimage (green149.jpg) as an attachment. &lt;BR /&gt;&lt;BR /&gt;I was a bit confused whether the red and blue channels needed to beswapped The HLS method (which appears to be bringing back the correct results) is named "ippiBGRToHLS" (not, RGB to HLS), whereas the HSV method (which appears to not be correct) is named "ippiRGBtoHSV". &lt;BR /&gt;&lt;BR /&gt;Having played with this problem a bit more this morning, it appears that I need to swap the R and B channels from the order in which they naturally occur in my imported Bitmap, whenever I use a method named RGB.&lt;BR /&gt;&lt;BR /&gt;Sound right?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ps just tested and this did the trick.</description>
      <pubDate>Tue, 28 Apr 2009 20:13:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-Hue-to-Degrees/m-p/849499#M6390</guid>
      <dc:creator>rogene</dc:creator>
      <dc:date>2009-04-28T20:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Hue to Degrees</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-Hue-to-Degrees/m-p/849500#M6391</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Correct, RGB in IPP function names should mean exactly R-G-B-R-G-B channel ordering whereas BGR in the name means opposite ordering.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt; Vladimir&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Apr 2009 12:42:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Converting-Hue-to-Degrees/m-p/849500#M6391</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2009-04-29T12:42:06Z</dc:date>
    </item>
  </channel>
</rss>

