<?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 Bug in ippimage.cpp:1387 (CIppImage::ToGray) in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Bug-in-ippimage-cpp-1387-CIppImage-ToGray/m-p/825652#M5138</link>
    <description>&lt;DIV id="tiny_quote"&gt;
                &lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=281854" class="basic" href="https://community.intel.com/en-us/profile/281854/"&gt;idana@picscout.com&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;I&gt;&lt;DIV style="display: inline !important;"&gt;&lt;I&gt;&lt;DIV style="display: inline !important;"&gt;&lt;I&gt;&lt;DIV style="display: inline !important;"&gt;&lt;DIV style="display: inline !important;" id="_mcePaste"&gt;&lt;I&gt;&lt;DIV style="display: inline !important;"&gt;&lt;DIV style="display: inline !important;" id="_mcePaste"&gt;&lt;I&gt;&lt;DIV style="display: inline !important;"&gt;I think that AND should be used instead of OR:&lt;/DIV&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/I&gt;&lt;I&gt;Hello,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt; if( NChannels() != 3 &amp;amp;&amp;amp; NChannels() != 4 )&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;  return -1;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;That's true. We will fix it. Probably, there were assertions before with "assert(NChannels==3 || NChannels==4)". When substituting with "if", the expression must be turned inside out completely "NChannels!=3 &lt;B&gt;&amp;amp;&amp;amp;&lt;/B&gt; NChannels!=4"&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Sergey&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2012 11:42:35 GMT</pubDate>
    <dc:creator>Sergey_K_Intel</dc:creator>
    <dc:date>2012-01-24T11:42:35Z</dc:date>
    <item>
      <title>Bug in ippimage.cpp:1387 (CIppImage::ToGray)</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Bug-in-ippimage-cpp-1387-CIppImage-ToGray/m-p/825647#M5133</link>
      <description>Hello,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The problem is in CIppImage::ToGray(CIppImage&amp;amp; img, const float* coeffs)&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The test below will allways return, and it should not:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt; if( NChannels() != 3 || NChannels() != 4 )&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;  return -1;;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I think that AND should be used instead of OR:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt; if( NChannels() != 3 &amp;amp;&amp;amp; NChannels() != 4 )&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;  return -1;;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Thank you.&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Jan 2012 11:34:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Bug-in-ippimage-cpp-1387-CIppImage-ToGray/m-p/825647#M5133</guid>
      <dc:creator>idana</dc:creator>
      <dc:date>2012-01-23T11:34:38Z</dc:date>
    </item>
    <item>
      <title>Bug in ippimage.cpp:1387 (CIppImage::ToGray)</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Bug-in-ippimage-cpp-1387-CIppImage-ToGray/m-p/825648#M5134</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just I verified picnic application with converting from RGB to Gray scale, it works fine, so coding logic should be correct.&lt;/P&gt;&lt;P&gt;Are you getting any error in the result of this function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen Gv&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2012 06:28:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Bug-in-ippimage-cpp-1387-CIppImage-ToGray/m-p/825648#M5134</guid>
      <dc:creator>Naveen_G_Intel</dc:creator>
      <dc:date>2012-01-24T06:28:51Z</dc:date>
    </item>
    <item>
      <title>Bug in ippimage.cpp:1387 (CIppImage::ToGray)</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Bug-in-ippimage-cpp-1387-CIppImage-ToGray/m-p/825649#M5135</link>
      <description>You are wrong: the code says "if not rgb24 or not rgb32 then don't do it".&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jan 2012 08:46:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Bug-in-ippimage-cpp-1387-CIppImage-ToGray/m-p/825649#M5135</guid>
      <dc:creator>Thomas_Jensen1</dc:creator>
      <dc:date>2012-01-24T08:46:15Z</dc:date>
    </item>
    <item>
      <title>Bug in ippimage.cpp:1387 (CIppImage::ToGray)</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Bug-in-ippimage-cpp-1387-CIppImage-ToGray/m-p/825650#M5136</link>
      <description>I use the following IPP version:&lt;DIV&gt;7.0 build 205.58, [7.0.1032.205]&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I used this specific function from my application and it returned -1 for color images.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The function should work if the image is rgb24 or rgb32, that is&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;if (!(rgb24 || rgb32))return -1;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;This is equivalent to:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;if (!rgb24 &amp;amp;&amp;amp; !rgb32)return -1;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;So the code should say"if not rgb24 AND not rgb32 then don't do it".&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thank you.&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Jan 2012 09:03:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Bug-in-ippimage-cpp-1387-CIppImage-ToGray/m-p/825650#M5136</guid>
      <dc:creator>idana</dc:creator>
      <dc:date>2012-01-24T09:03:10Z</dc:date>
    </item>
    <item>
      <title>Bug in ippimage.cpp:1387 (CIppImage::ToGray)</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Bug-in-ippimage-cpp-1387-CIppImage-ToGray/m-p/825651#M5137</link>
      <description>Hmm, I guess you are correct. It is too early in the morning here...&lt;BR /&gt;&lt;BR /&gt;For rgb24, it would look like this:&lt;BR /&gt;&lt;BR /&gt;if( 3 != 3 || 3 != 4 )&lt;BR /&gt; return -1;&lt;BR /&gt;&lt;BR /&gt;This will always return -1 !&lt;BR /&gt;&lt;BR /&gt;Naveen checked in Picnic, but I cannot find any grayscale functions in Picnic.&lt;BR /&gt;&lt;BR /&gt;I also searched for ToGray() references in the source code of Picnic, but I didn't find any references except the implementation.&lt;BR /&gt;&lt;BR /&gt;Naveen, can you clarify?</description>
      <pubDate>Tue, 24 Jan 2012 10:17:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Bug-in-ippimage-cpp-1387-CIppImage-ToGray/m-p/825651#M5137</guid>
      <dc:creator>Thomas_Jensen1</dc:creator>
      <dc:date>2012-01-24T10:17:06Z</dc:date>
    </item>
    <item>
      <title>Bug in ippimage.cpp:1387 (CIppImage::ToGray)</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Bug-in-ippimage-cpp-1387-CIppImage-ToGray/m-p/825652#M5138</link>
      <description>&lt;DIV id="tiny_quote"&gt;
                &lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=281854" class="basic" href="https://community.intel.com/en-us/profile/281854/"&gt;idana@picscout.com&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;I&gt;&lt;DIV style="display: inline !important;"&gt;&lt;I&gt;&lt;DIV style="display: inline !important;"&gt;&lt;I&gt;&lt;DIV style="display: inline !important;"&gt;&lt;DIV style="display: inline !important;" id="_mcePaste"&gt;&lt;I&gt;&lt;DIV style="display: inline !important;"&gt;&lt;DIV style="display: inline !important;" id="_mcePaste"&gt;&lt;I&gt;&lt;DIV style="display: inline !important;"&gt;I think that AND should be used instead of OR:&lt;/DIV&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/I&gt;&lt;I&gt;Hello,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt; if( NChannels() != 3 &amp;amp;&amp;amp; NChannels() != 4 )&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;  return -1;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;That's true. We will fix it. Probably, there were assertions before with "assert(NChannels==3 || NChannels==4)". When substituting with "if", the expression must be turned inside out completely "NChannels!=3 &lt;B&gt;&amp;amp;&amp;amp;&lt;/B&gt; NChannels!=4"&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Sergey&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2012 11:42:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Bug-in-ippimage-cpp-1387-CIppImage-ToGray/m-p/825652#M5138</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2012-01-24T11:42:35Z</dc:date>
    </item>
  </channel>
</rss>

