<?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 Hi Axel, in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Why-does-ippiHistogramGetBufferSize-requires-the-ROI/m-p/1070518#M24530</link>
    <description>&lt;P&gt;Hi Axel,&lt;/P&gt;

&lt;P&gt;you should use maximum expected ROI for GetSize and then you can use Initialized spec "million" times. This is done in such way in order to remove internal memory allocations.&lt;/P&gt;

&lt;P&gt;regards, Igor.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2017 09:06:47 GMT</pubDate>
    <dc:creator>Igor_A_Intel</dc:creator>
    <dc:date>2017-01-19T09:06:47Z</dc:date>
    <item>
      <title>Why does ippiHistogramGetBufferSize() requires the ROI?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Why-does-ippiHistogramGetBufferSize-requires-the-ROI/m-p/1070517#M24529</link>
      <description>&lt;P&gt;ippiHistogramGetBufferSize() requires the ROI as input parameter, however this is extremely unfortunate. Consider the case where one wants to compute the histogram of a large number of images of unknown size, that means what we need to allocate/initialize/free the spec buffers for each image, as demonstrated here: &lt;A href="https://software.intel.com/en-us/node/529046"&gt;https://software.intel.com/en-us/node/529046&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;With the old API, I could initialize the levels only once for the lifetime of my process and call the ippiHistogramEven_8u_AC4R() millions of times on any sizes' images. This seems like a regression.&lt;/P&gt;

&lt;P&gt;What happened to ippiHistogramEven_8u_AC4R() by the way? I only see ippiHistogram_8u_C4R() in the new API, meaning I need to allocate 4 buffers for the result instead of 3, even if the histogram of the (unused)&amp;nbsp;Alpha channel is never going to be of any use?&lt;/P&gt;

&lt;P&gt;Finally, the data type of the histogram bins is now Ipp32u (was Ipp32s before) but there is no in-place variant of ippsAdd() for 32u, which would be needed to add histograms together (like when computing an image's histogram in multiple bands).&lt;/P&gt;

&lt;P&gt;It seems that a bunch of functions were dropped and&amp;nbsp;changes made, making it impossible to update to the latest IPP and recompile existing code to take advantage of the latest CPU features :-(&lt;/P&gt;

&lt;P&gt;Toughts?&lt;/P&gt;

&lt;P&gt;Axel&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 08:19:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Why-does-ippiHistogramGetBufferSize-requires-the-ROI/m-p/1070517#M24529</guid>
      <dc:creator>Rietschin__Axel</dc:creator>
      <dc:date>2017-01-16T08:19:45Z</dc:date>
    </item>
    <item>
      <title>Hi Axel,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Why-does-ippiHistogramGetBufferSize-requires-the-ROI/m-p/1070518#M24530</link>
      <description>&lt;P&gt;Hi Axel,&lt;/P&gt;

&lt;P&gt;you should use maximum expected ROI for GetSize and then you can use Initialized spec "million" times. This is done in such way in order to remove internal memory allocations.&lt;/P&gt;

&lt;P&gt;regards, Igor.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 09:06:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Why-does-ippiHistogramGetBufferSize-requires-the-ROI/m-p/1070518#M24530</guid>
      <dc:creator>Igor_A_Intel</dc:creator>
      <dc:date>2017-01-19T09:06:47Z</dc:date>
    </item>
    <item>
      <title>Thanks Igor, maybe this</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Why-does-ippiHistogramGetBufferSize-requires-the-ROI/m-p/1070519#M24531</link>
      <description>&lt;P&gt;Thanks Igor, maybe this should be added to the documentation?&lt;/P&gt;

&lt;P&gt;I made some experiments and the sizes I get from GetSize seems to be the same regardless of the size of the&amp;nbsp;ROI, so I used 1x1 for the time being. Since the ROI finally appears not to be used (the only change of behavior I could observe is when I passed 0x0) maybe the doc should include a note.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
	Axel&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 22:35:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Why-does-ippiHistogramGetBufferSize-requires-the-ROI/m-p/1070519#M24531</guid>
      <dc:creator>Rietschin__Axel</dc:creator>
      <dc:date>2017-01-24T22:35:45Z</dc:date>
    </item>
    <item>
      <title>Hi Axel,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Why-does-ippiHistogramGetBufferSize-requires-the-ROI/m-p/1070520#M24532</link>
      <description>&lt;P&gt;Hi Axel,&lt;/P&gt;

&lt;P&gt;sorry, you are right - buffer size doesn't depend on roiSize in the current implementation - so roiSize is "reserved" parameter. It's checked in the Badarg test for greater than zero values and bad status is returned in case of width and/or height are &amp;lt;= zero. Buffer size depends on the number of channels and data type only.&lt;/P&gt;

&lt;P&gt;regards, Igor&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 08:23:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Why-does-ippiHistogramGetBufferSize-requires-the-ROI/m-p/1070520#M24532</guid>
      <dc:creator>Igor_A_Intel</dc:creator>
      <dc:date>2017-01-25T08:23:04Z</dc:date>
    </item>
  </channel>
</rss>

