<?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: Question about the HLS color mode in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-the-HLS-color-mode/m-p/951906#M18675</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;FONT size="2"&gt;
&lt;P&gt;For ippiRGBToHLS_8u_C3R() we've written next:&lt;/P&gt;
&lt;P&gt;H is the hue red at 0 degrees, which has range [0 .. 360 degrees],&lt;BR /&gt;L is the lightness , it has range [0. .. 1.], &lt;BR /&gt;S is the saturation, it has range [0. .. 1.]&lt;/P&gt;
&lt;P&gt;H,L,S are scaled to the range:&lt;/P&gt;
&lt;P&gt;[0..IPP_MAX_8u] for the 8u depth.&lt;/P&gt;
&lt;P&gt;H = H * IPP_MAX_8U / 360.f;&lt;BR /&gt;L = L * IPP_MAX_8U;&lt;BR /&gt;S = S * IPP_MAX_8U;&lt;/P&gt;
&lt;P&gt;To restore the true value(H,L,S) after ippiRGBToHLS_8u they should do next calculation:&lt;/P&gt;
&lt;P&gt;H = (Ipp32f)H*360.f/(Ipp32f)IPP_MAX_8U;&lt;BR /&gt;L = (Ipp32f)L/(Ipp32f)IPP_MAX_8U;&lt;BR /&gt;S = (Ipp32f)S/(Ipp32f)IPP_MAX_8U;&lt;/P&gt;
&lt;P&gt;Data is found in memory as an array of unsigned characters in which the first byte contains the H, the second byte contains the L, the third byte contains S.&lt;/P&gt;
&lt;P&gt;P.S.: Please see ippiman.pdf for more details&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 02 Jul 2004 01:04:43 GMT</pubDate>
    <dc:creator>Vladimir_Dudnik</dc:creator>
    <dc:date>2004-07-02T01:04:43Z</dc:date>
    <item>
      <title>Question about the HLS color mode</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-the-HLS-color-mode/m-p/951905#M18674</link>
      <description>&lt;DIV&gt;I'm writing a color correct application,the app convert a RGB image to HLS format,and the adjust the H,L,S companents.I use IPP todo the converting,but I don't know the data format of the converted HLS image,I mean I don't know which byte is the H companent,and which is the L or S companent,and I also don't know the max &amp;amp; min value of each companent,so anyone can help me?&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Jun 2004 18:13:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-the-HLS-color-mode/m-p/951905#M18674</guid>
      <dc:creator>pango</dc:creator>
      <dc:date>2004-06-23T18:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Question about the HLS color mode</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-the-HLS-color-mode/m-p/951906#M18675</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;FONT size="2"&gt;
&lt;P&gt;For ippiRGBToHLS_8u_C3R() we've written next:&lt;/P&gt;
&lt;P&gt;H is the hue red at 0 degrees, which has range [0 .. 360 degrees],&lt;BR /&gt;L is the lightness , it has range [0. .. 1.], &lt;BR /&gt;S is the saturation, it has range [0. .. 1.]&lt;/P&gt;
&lt;P&gt;H,L,S are scaled to the range:&lt;/P&gt;
&lt;P&gt;[0..IPP_MAX_8u] for the 8u depth.&lt;/P&gt;
&lt;P&gt;H = H * IPP_MAX_8U / 360.f;&lt;BR /&gt;L = L * IPP_MAX_8U;&lt;BR /&gt;S = S * IPP_MAX_8U;&lt;/P&gt;
&lt;P&gt;To restore the true value(H,L,S) after ippiRGBToHLS_8u they should do next calculation:&lt;/P&gt;
&lt;P&gt;H = (Ipp32f)H*360.f/(Ipp32f)IPP_MAX_8U;&lt;BR /&gt;L = (Ipp32f)L/(Ipp32f)IPP_MAX_8U;&lt;BR /&gt;S = (Ipp32f)S/(Ipp32f)IPP_MAX_8U;&lt;/P&gt;
&lt;P&gt;Data is found in memory as an array of unsigned characters in which the first byte contains the H, the second byte contains the L, the third byte contains S.&lt;/P&gt;
&lt;P&gt;P.S.: Please see ippiman.pdf for more details&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Jul 2004 01:04:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Question-about-the-HLS-color-mode/m-p/951906#M18675</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2004-07-02T01:04:43Z</dc:date>
    </item>
  </channel>
</rss>

