<?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 RGB To HLS 8u P3-C3 conversions in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/RGB-To-HLS-8u-P3-C3-conversions/m-p/1121282#M25575</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I was trying to replace ippiRGBToHLS_8u_C3R with ippiBGRToHLS_8u_C3P3R.&lt;/P&gt;

&lt;P&gt;The functions give differing results for some RGB values, and ippiBGRToHLS_8u_C3P3R gives differing results for the same RGB values.&lt;/P&gt;

&lt;P&gt;Here is an example:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;// a BGR image, 5 pixels per row (R,G,B)
// padding to 16 bytes
IppStatus st;
Ipp8u BGR[16] = {  91, 182, 204,  91, 182, 204,  91, 182, 204,  91, 182, 204,  91, 182, 204, 0 };
Ipp8u RGB[16] = { 204, 182,  91, 204, 182,  91, 204, 182,  91, 204, 182,  91, 204, 182,  91, 0 };
IppiSize roi = { 5, 1 };

// convert RGB-&amp;gt;HLS
Ipp8u HLS3ch[16];
st = ippiRGBToHLS_8u_C3R(RGB, 16, HLS3ch, 16, roi);
// extract to channels
Ipp8u H0[8 ], L0[8 ], S0[8 ];
Ipp8u* pHLS0[] = { H0, L0, S0 };
st = ippiCopy_8u_C3P3R(HLS3ch, 16, pHLS0, 8, roi);

Ipp8u H[8 ], L[8 ], S[8 ];
Ipp8u* pHLS[] = { H, L, S };
st = ippiBGRToHLS_8u_C3P3R(BGR, 16, pHLS, 8, roi);&lt;/PRE&gt;

&lt;P&gt;The H0 and H channels are identical, as are the L0 and L channels. But&lt;/P&gt;

&lt;P&gt;S0 = 134 134 134 134 134&lt;/P&gt;

&lt;P&gt;S = 133 133 133 133 134&lt;/P&gt;

&lt;P&gt;Using: i7-4790, IPP8.1 32bit, Win10 64bit.&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2016 09:50:03 GMT</pubDate>
    <dc:creator>b_k_</dc:creator>
    <dc:date>2016-05-09T09:50:03Z</dc:date>
    <item>
      <title>RGB To HLS 8u P3-C3 conversions</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/RGB-To-HLS-8u-P3-C3-conversions/m-p/1121282#M25575</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I was trying to replace ippiRGBToHLS_8u_C3R with ippiBGRToHLS_8u_C3P3R.&lt;/P&gt;

&lt;P&gt;The functions give differing results for some RGB values, and ippiBGRToHLS_8u_C3P3R gives differing results for the same RGB values.&lt;/P&gt;

&lt;P&gt;Here is an example:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;// a BGR image, 5 pixels per row (R,G,B)
// padding to 16 bytes
IppStatus st;
Ipp8u BGR[16] = {  91, 182, 204,  91, 182, 204,  91, 182, 204,  91, 182, 204,  91, 182, 204, 0 };
Ipp8u RGB[16] = { 204, 182,  91, 204, 182,  91, 204, 182,  91, 204, 182,  91, 204, 182,  91, 0 };
IppiSize roi = { 5, 1 };

// convert RGB-&amp;gt;HLS
Ipp8u HLS3ch[16];
st = ippiRGBToHLS_8u_C3R(RGB, 16, HLS3ch, 16, roi);
// extract to channels
Ipp8u H0[8 ], L0[8 ], S0[8 ];
Ipp8u* pHLS0[] = { H0, L0, S0 };
st = ippiCopy_8u_C3P3R(HLS3ch, 16, pHLS0, 8, roi);

Ipp8u H[8 ], L[8 ], S[8 ];
Ipp8u* pHLS[] = { H, L, S };
st = ippiBGRToHLS_8u_C3P3R(BGR, 16, pHLS, 8, roi);&lt;/PRE&gt;

&lt;P&gt;The H0 and H channels are identical, as are the L0 and L channels. But&lt;/P&gt;

&lt;P&gt;S0 = 134 134 134 134 134&lt;/P&gt;

&lt;P&gt;S = 133 133 133 133 134&lt;/P&gt;

&lt;P&gt;Using: i7-4790, IPP8.1 32bit, Win10 64bit.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 09:50:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/RGB-To-HLS-8u-P3-C3-conversions/m-p/1121282#M25575</guid>
      <dc:creator>b_k_</dc:creator>
      <dc:date>2016-05-09T09:50:03Z</dc:date>
    </item>
    <item>
      <title>Hi,  </title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/RGB-To-HLS-8u-P3-C3-conversions/m-p/1121283#M25576</link>
      <description>&lt;P&gt;Hi, &amp;nbsp;&lt;BR /&gt;
	&lt;BR /&gt;
	Thanks for your report. &amp;nbsp; does that only have the difference with "1"? &amp;nbsp; We will have further check on this.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
	Chao&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 01:50:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/RGB-To-HLS-8u-P3-C3-conversions/m-p/1121283#M25576</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2016-05-10T01:50:33Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/RGB-To-HLS-8u-P3-C3-conversions/m-p/1121284#M25577</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I checked on some other images and the differences were 1's only.&lt;/P&gt;

&lt;P&gt;Attached is an image where many differences occure in the H,L,S channels.&lt;/P&gt;

&lt;P&gt;By the way, using the values from the example {&lt;CODE class="plain"&gt;91, 182, 204&lt;/CODE&gt;} in an image that is 1x1 size results in identical HLS values&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 07:20:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/RGB-To-HLS-8u-P3-C3-conversions/m-p/1121284#M25577</guid>
      <dc:creator>b_k_</dc:creator>
      <dc:date>2016-05-10T07:20:00Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/RGB-To-HLS-8u-P3-C3-conversions/m-p/1121285#M25578</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;The results of ippiBGRToHLS_8u_P3R also differ from the results of ippiBGRToHLS_8u_C3R.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 10:56:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/RGB-To-HLS-8u-P3-C3-conversions/m-p/1121285#M25578</guid>
      <dc:creator>b_k_</dc:creator>
      <dc:date>2016-05-10T10:56:06Z</dc:date>
    </item>
  </channel>
</rss>

