<?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 Quote:Chaofeng W. wrote: in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Floodfill-GetSize-function-is-useless/m-p/958775#M19451</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Chaofeng W. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;OK, I just found that it's in ipp.h which I never included before. I thought it ought to be automatically included by including ippi.h.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;ippMalloc/ippFree come from ippcore library. It's a different functional domain. These functions are described in signal-processing manual (Support Functions) and require "ippcore.h" to be included.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Apr 2014 07:59:54 GMT</pubDate>
    <dc:creator>Sergey_K_Intel</dc:creator>
    <dc:date>2014-04-08T07:59:54Z</dc:date>
    <item>
      <title>Floodfill GetSize function is useless?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Floodfill-GetSize-function-is-useless/m-p/958771#M19447</link>
      <description>&lt;P&gt;I found in the example of Floodfill_Grad page:&amp;nbsp;&lt;A href="http://software.intel.com/sites/products/documentation/hpc/ipp/ippi/ippi_ch14/functn_FloodFill_Grad.html" target="_blank"&gt;&lt;/A&gt;&lt;A href="http://software.intel.com/" target="_blank"&gt;http://software.intel.com/&lt;/A&gt;&lt;WBR /&gt;sites/products/documentation/&lt;WBR /&gt;hpc/ipp/ippi/ippi_ch14/functn_&lt;WBR /&gt;FloodFill_Grad.html&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;
ippiFloodFillGetSize_Grad ( roiSize, &amp;amp;pBufSize );
Ipp8u* pBuffer = ippiMalloc_8u_C1 ( 8, 8, &amp;amp;pBufSize );
ippiFloodFill_Grad4Con_8u_C1IR ( pImage, 8, roiSize, seed, newVal, minDelta, maxDelta, &amp;amp;pRegion, pBuffer );&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;The pBufSize is calculated by GetSize() function, however it is updated in ippiMalloc function without any use.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;From the manual description, the temporary buffer size should be calculated by GetSize and we only need to create a char buff with that size and pass the buff to flood fill function. However, as the example shows, the size returned by GetSize is not used at all. Or I guess the pBufSize is both \param[in, out] for ippiMalloc?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I have tried both ways: 1. the same way as the example shows. 2. I get size with GetSize() and new a char array with this size, and use this char array in Floodfill. It turns out that the 2nd way is about 3 times slower than the 1st way.&lt;/P&gt;

&lt;P&gt;Is there any explanation? Or should the manual be updated to reflect about this difference?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2014 04:38:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Floodfill-GetSize-function-is-useless/m-p/958771#M19447</guid>
      <dc:creator>Chaofeng_W_</dc:creator>
      <dc:date>2014-03-25T04:38:34Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Floodfill-GetSize-function-is-useless/m-p/958772#M19448</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;of course it's a bug in the manual.&lt;/P&gt;

&lt;P&gt;the correct code should look the next way:&lt;/P&gt;

&lt;P align="LEFT"&gt;&lt;FONT face="CourierNewPSMT" size="2"&gt;&lt;FONT face="CourierNewPSMT" size="2"&gt;ippiFloodFillGetSize_Grad ( roiSize, &amp;amp;pBufferSize );&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P align="LEFT"&gt;&lt;FONT face="CourierNewPSMT" size="2"&gt;&lt;FONT face="CourierNewPSMT" size="2"&gt;Ipp8u* pBuffer = ippMalloc_8u (pBufferSize );&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P align="LEFT"&gt;&lt;FONT face="CourierNewPSMT" size="2"&gt;&lt;FONT face="CourierNewPSMT" size="2"&gt;ippiFloodFill_Grad4Con_8u_C1IR ( pImage, 8, roiSize, seed, newVal, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="CourierNewPSMT" size="2"&gt;&lt;FONT face="CourierNewPSMT" size="2"&gt;minDelta, maxDelta, &amp;amp;pRegion, pBuffer );&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P align="LEFT"&gt;&lt;FONT face="CourierNewPSMT" size="2"&gt;&lt;FONT face="CourierNewPSMT" size="2"&gt;Regarding your question on performance - does function work correctly in both cases and return OK status?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P align="LEFT"&gt;&lt;FONT face="CourierNewPSMT" size="2"&gt;&lt;FONT face="CourierNewPSMT" size="2"&gt;regards, Igor&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2014 14:46:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Floodfill-GetSize-function-is-useless/m-p/958772#M19448</guid>
      <dc:creator>Igor_A_Intel</dc:creator>
      <dc:date>2014-03-25T14:46:22Z</dc:date>
    </item>
    <item>
      <title>Dear Igor,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Floodfill-GetSize-function-is-useless/m-p/958773#M19449</link>
      <description>&lt;P&gt;Dear Igor,&lt;/P&gt;

&lt;P&gt;Thanks for the info. I found that I used std::vector to hold the buffer and the initialization leads to extra time costs. I changed to use ippsMalloc and the time cost is reduced to the same as using ippiMalloc.&lt;/P&gt;

&lt;P&gt;BTW, I can't find ippMalloc and ippFree in my IPPv7.0. I am using Windows 7 sp1.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 07:03:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Floodfill-GetSize-function-is-useless/m-p/958773#M19449</guid>
      <dc:creator>Chaofeng_W_</dc:creator>
      <dc:date>2014-03-26T07:03:40Z</dc:date>
    </item>
    <item>
      <title>OK, I just found that it's in</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Floodfill-GetSize-function-is-useless/m-p/958774#M19450</link>
      <description>&lt;P&gt;OK, I just found that it's in ipp.h which I never included before. I thought it ought to be automatically included by including ippi.h.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 08:20:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Floodfill-GetSize-function-is-useless/m-p/958774#M19450</guid>
      <dc:creator>Chaofeng_W_</dc:creator>
      <dc:date>2014-03-26T08:20:02Z</dc:date>
    </item>
    <item>
      <title>Quote:Chaofeng W. wrote:</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Floodfill-GetSize-function-is-useless/m-p/958775#M19451</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Chaofeng W. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;OK, I just found that it's in ipp.h which I never included before. I thought it ought to be automatically included by including ippi.h.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;ippMalloc/ippFree come from ippcore library. It's a different functional domain. These functions are described in signal-processing manual (Support Functions) and require "ippcore.h" to be included.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2014 07:59:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Floodfill-GetSize-function-is-useless/m-p/958775#M19451</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2014-04-08T07:59:54Z</dc:date>
    </item>
  </channel>
</rss>

