<?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 I don't understand ... A tell in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToGray/m-p/957519#M19249</link>
    <description>I don't understand ... A tell about calc... I can't use BGR24 directly? First I need swap or IPP will work with BGR24 too?
T don't know how IPP convert to gray.

Thanks.</description>
    <pubDate>Fri, 10 May 2013 15:49:54 GMT</pubDate>
    <dc:creator>Paulo_César_B_</dc:creator>
    <dc:date>2013-05-10T15:49:54Z</dc:date>
    <item>
      <title>RGBToGray</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToGray/m-p/957517#M19247</link>
      <description>&lt;P&gt;I'm a little confused. The function RGBToGray will work for BGR format too? Or I have to do the conversion before? Thank you very much.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2013 14:53:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToGray/m-p/957517#M19247</guid>
      <dc:creator>Paulo_César_B_</dc:creator>
      <dc:date>2013-05-10T14:53:39Z</dc:date>
    </item>
    <item>
      <title>If there's a version with</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToGray/m-p/957518#M19248</link>
      <description>&lt;P&gt;If there's a version with planar input, then yes you could and just swap the R and B planes&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2013 15:23:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToGray/m-p/957518#M19248</guid>
      <dc:creator>andy4us</dc:creator>
      <dc:date>2013-05-10T15:23:07Z</dc:date>
    </item>
    <item>
      <title>I don't understand ... A tell</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToGray/m-p/957519#M19249</link>
      <description>I don't understand ... A tell about calc... I can't use BGR24 directly? First I need swap or IPP will work with BGR24 too?
T don't know how IPP convert to gray.

Thanks.</description>
      <pubDate>Fri, 10 May 2013 15:49:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToGray/m-p/957519#M19249</guid>
      <dc:creator>Paulo_César_B_</dc:creator>
      <dc:date>2013-05-10T15:49:54Z</dc:date>
    </item>
    <item>
      <title>Thank you very much! So, here</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToGray/m-p/957520#M19250</link>
      <description>Thank you very much! So, here worked fine with BGR format too =]</description>
      <pubDate>Fri, 10 May 2013 18:52:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToGray/m-p/957520#M19250</guid>
      <dc:creator>Paulo_César_B_</dc:creator>
      <dc:date>2013-05-10T18:52:05Z</dc:date>
    </item>
    <item>
      <title>Please use full names for IPP</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToGray/m-p/957521#M19251</link>
      <description>Please use &lt;STRONG&gt;full names&lt;/STRONG&gt; for IPP functions when you're describing a problem or asking a question. Thanks in advance.

&lt;STRONG&gt;Note:&lt;/STRONG&gt; Actually this is a discussion about a set of IPP functions &lt;STRONG&gt;ippiRGBToGray_xx_xxxxx&lt;/STRONG&gt;.

&amp;gt;&amp;gt;... So, here worked fine with BGR format too...

A very famous equation

&lt;STRONG&gt;Y&lt;/STRONG&gt; = 0.299 * &lt;STRONG&gt;R&lt;/STRONG&gt; + 0.587 * &lt;STRONG&gt;G&lt;/STRONG&gt; + 0.114 * &lt;STRONG&gt;B&lt;/STRONG&gt;

is used to do this conversion RGB to Gray. However, you need to verify that it doesn't do something like:

&lt;STRONG&gt;Y&lt;/STRONG&gt; = 0.299 * &lt;STRONG&gt;B&lt;/STRONG&gt; + 0.587 * &lt;STRONG&gt;G&lt;/STRONG&gt; + 0.114 * &lt;STRONG&gt;R&lt;/STRONG&gt;

I'm Not sure that it does not.</description>
      <pubDate>Sun, 12 May 2013 04:42:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToGray/m-p/957521#M19251</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2013-05-12T04:42:24Z</dc:date>
    </item>
    <item>
      <title>If Sergey are right and you</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToGray/m-p/957522#M19252</link>
      <description>&lt;P&gt;If Sergey are right and you see wrong coefficients for B &amp;amp; R - use another function, please:&lt;/P&gt;
&lt;P&gt;/* /////////////////////////////////////////////////////////////////////////////&lt;BR /&gt;//&amp;nbsp; Name:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ippiColorToGray&lt;BR /&gt;//&amp;nbsp; Purpose:&amp;nbsp;&amp;nbsp;&amp;nbsp; Converts an RGB image to gray scale (custom coefficients)&lt;BR /&gt;//&amp;nbsp; Parameters:&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pSrc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pointer to the source image , points to point(0,0)&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pDst&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pointer to the destination image , points to point(0,0)&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; roiSize&amp;nbsp;&amp;nbsp; Size of the ROI in pixels. Since the function performs point&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; operations (without a border), the ROI may be the whole image.&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; srcStep&amp;nbsp;&amp;nbsp; Step in bytes through the source image to jump on the next line&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dstStep&amp;nbsp;&amp;nbsp; Step in bytes through the destination image to jump on the next line&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; coeffs[3] User-defined vector of coefficients.&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The sum of the coefficients should be less than or equal to 1&lt;BR /&gt;//&amp;nbsp; Returns:&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ippStsNullPtrErr&amp;nbsp; pSrc == NULL, or pDst == NULL&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ippStsSizeErr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; roiSize has a field with zero or negative value&lt;BR /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ippStsNoErr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No errors&lt;BR /&gt;//&lt;BR /&gt;//&amp;nbsp; The following equation is used to convert an RGB image to gray scale:&lt;BR /&gt;//&lt;BR /&gt;//&amp;nbsp;&amp;nbsp; Y = coeffs[0] * R + coeffs[1] * G + coeffs[2] * B;&lt;BR /&gt;//&lt;BR /&gt;//&lt;BR /&gt;*/&lt;/P&gt;
&lt;P&gt;just swap coefficients from the formula above.&lt;/P&gt;
&lt;P&gt;Regards, Igor&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2013 12:13:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToGray/m-p/957522#M19252</guid>
      <dc:creator>Igor_A_Intel</dc:creator>
      <dc:date>2013-05-14T12:13:24Z</dc:date>
    </item>
    <item>
      <title>This is a short follow up</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToGray/m-p/957523#M19253</link>
      <description>This is a short follow up with some technical details.

&amp;gt;&amp;gt;A very famous equation
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;Y = 0.299 * R + 0.587 * G + 0.114 * B
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;is used to do this conversion RGB to Grey. However, you need to verify that it doesn't do something like:
&amp;gt;&amp;gt;
&amp;gt;&amp;gt;Y = 0.299 * B + 0.587 * G + 0.114 * R

Let's say R=64, G=128, B=192, then

&lt;STRONG&gt;Case 1&lt;/STRONG&gt;

Y = 0.299 * R + 0.587 * G + 0.114 * B
Y = 0.299 * 64 + 0.587 * 128 + 0.114 * 192 = &lt;STRONG&gt;116.16&lt;/STRONG&gt;

&lt;STRONG&gt;Case 2&lt;/STRONG&gt;

Y = 0.299 * B + 0.587 * G + 0.114 * R
Y = 0.299 * 192 + 0.587 * 128 + 0.114 * 64 = &lt;STRONG&gt;139.84&lt;/STRONG&gt;

Intensity of a grey image is Not the same, as you can see. In some applications, like X-Ray imaging or MRI, incorect conversions are Not allowed.</description>
      <pubDate>Wed, 22 May 2013 14:30:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/RGBToGray/m-p/957523#M19253</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2013-05-22T14:30:00Z</dc:date>
    </item>
  </channel>
</rss>

