<?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 the histogram is calculate in in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/bad-result-for-ippiResizeSuper-8u-C1R-function/m-p/1161636#M26632</link>
    <description>&lt;P&gt;the histogram is calculate in a simple way - counting the number of &lt;SPAN style="font-size: 13.008px;"&gt;occurrences&lt;/SPAN&gt; of each gray level (from 0 to 255)&lt;/P&gt;

&lt;P&gt;the histogram shape should be smooth. In this histogram, it seems that there are much more odd values, that even. part of the histogram's values, from gray level 230 to 245:&lt;/P&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;486&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;701&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;331&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;492&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;222&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;334&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;149&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;267&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;166&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;255&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;159&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;252&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;164&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;391&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;459&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;801&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 31 Jul 2018 10:59:49 GMT</pubDate>
    <dc:creator>P__Ella</dc:creator>
    <dc:date>2018-07-31T10:59:49Z</dc:date>
    <item>
      <title>bad result for ippiResizeSuper_8u_C1R function</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/bad-result-for-ippiResizeSuper-8u-C1R-function/m-p/1161630#M26626</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I’m upgrading my&amp;nbsp;code from ipp8.2 to ipp18.&lt;/P&gt;

&lt;P&gt;In the old version, I used the function&amp;nbsp;ippiResizeSqrPixel_8u_C1R with interpolation method = IPPI_INTER_SUPER. In the new version, I’m using the function ippiResizeSuper_8u_C1R. I’ve expected to get identical images as an output, however, they are different.&lt;/P&gt;

&lt;P&gt;I’ve tested the reduces images’ histogram. In the old ipp version, the histogram is smooth. But in the the new one it has a shape of comb (see attached)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;int bufSize;&lt;/P&gt;

&lt;P&gt;IppiBorderType borderType = ippBorderRepl;&lt;/P&gt;

&lt;P&gt;Ipp8u borderValue = 0;&lt;/P&gt;

&lt;P&gt;Ipp32u antialiasing = interpolationMethod | IPPI_ANTIALIASING;&lt;/P&gt;

&lt;P&gt;IppiInterpolationType interpolation = ippSuper;&lt;/P&gt;

&lt;P&gt;int pSpecSize, pInitBufSize;&lt;/P&gt;

&lt;P&gt;IppStatus sts2 = ippiResizeGetSize_8u(src.GetSize(), dst.GetSize(), interpolation, antialiasing, &amp;nbsp;&amp;amp;pSpecSize, &amp;amp;pInitBufSize);&lt;/P&gt;

&lt;P&gt;IppiResizeSpec_32f* pSpec = (IppiResizeSpec_32f*)AllocReuseMem(pSpecSize);&lt;/P&gt;

&lt;P&gt;Ipp8u* pInitBuf = AllocReuseMem(pInitBufSize);&lt;/P&gt;

&lt;P&gt;ippiResizeSuperInit_8u(src.GetSize(), dst.GetSize(), pSpec);&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;ippiResizeGetBufferSize_8u(pSpec, dst.GetSize(), 1/*numChannels*/, &amp;amp;bufSize);&lt;/P&gt;

&lt;P&gt;Ipp8u* pBuffer = AllocReuseMem(bufSize);&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;IppiPoint dstOffset = { 0,0 };&lt;/P&gt;

&lt;P&gt;ippiResizeSuper_8u_C1R(src.GetData(), src.GetPitch(), dst.GetData(), dst.GetPitch(), dstOffset, dst.GetSize(), pSpec, pBuffer);&lt;/P&gt;

&lt;P&gt;ippsFree(pSpec);&lt;/P&gt;

&lt;P&gt;ippsFree(pBuffer);&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;any ideas?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 13:24:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/bad-result-for-ippiResizeSuper-8u-C1R-function/m-p/1161630#M26626</guid>
      <dc:creator>P__Ella</dc:creator>
      <dc:date>2018-07-25T13:24:41Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/bad-result-for-ippiResizeSuper-8u-C1R-function/m-p/1161631#M26627</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;The first idea is to check statuses for all IPP function calls.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If all the statuses are ippStsNoErr, could you please provide the source code of using ippiResizeSqrPixel and image sizes you used?&lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;/P&gt;

&lt;P&gt;Tatyana&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 15:16:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/bad-result-for-ippiResizeSuper-8u-C1R-function/m-p/1161631#M26627</guid>
      <dc:creator>Tatyana_B_Intel</dc:creator>
      <dc:date>2018-07-25T15:16:41Z</dc:date>
    </item>
    <item>
      <title>Hi Tatyana,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/bad-result-for-ippiResizeSuper-8u-C1R-function/m-p/1161632#M26628</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;Tatyana,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I've checked the statuses, and they all equal to&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;ippStsNoErr.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;I'm using the function to resize image by factor of 2, from 2048x2048 to 1024x1024.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;the ipp8.2 code used&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;ippiResizeSqrPixel which produced the correct result &lt;/SPAN&gt;is:&lt;/P&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;int erpolationMethod = IPPI_INTER_SUPER;&lt;SPAN style="white-space:pre"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;double resizeFactX = double(dst.GetWidth())/src.GetWidth();&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;double resizeFactY = double(dst.GetHeight())/src.GetHeight();&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;ippiResizeSqrPixel_8u_C1R (src.GetData(), src.GetSize(), src.GetPitch(), src.GetROI(), dst.GetData(),dst.GetPitch(),dst.GetROI(),resizeFactX, resizeFactY,0.0,0.0, interpolationMethod,buf);&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;thanks,&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;Ella&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 26 Jul 2018 06:22:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/bad-result-for-ippiResizeSuper-8u-C1R-function/m-p/1161632#M26628</guid>
      <dc:creator>P__Ella</dc:creator>
      <dc:date>2018-07-26T06:22:09Z</dc:date>
    </item>
    <item>
      <title>Hi Ella,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/bad-result-for-ippiResizeSuper-8u-C1R-function/m-p/1161633#M26629</link>
      <description>&lt;P&gt;Hi Ella,&lt;/P&gt;

&lt;P&gt;I've tried to reproduce your issue.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I filled source image randomly and checked the difference between&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;ippiResizeSuper_8u_C1R and&amp;nbsp;ippiResizeSqrPixel_8u_C1R destination images.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;The maximal difference in pixel values is 1. And this behavior is expected.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Could you please check the maximal difference by pixel values of your destination images? If it is less or equal to 1 it's expected.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If it's more than 1, we need your the source image to reproduce.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Tatyana&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 09:42:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/bad-result-for-ippiResizeSuper-8u-C1R-function/m-p/1161633#M26629</guid>
      <dc:creator>Tatyana_B_Intel</dc:creator>
      <dc:date>2018-07-31T09:42:59Z</dc:date>
    </item>
    <item>
      <title>Hi Tatyana,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/bad-result-for-ippiResizeSuper-8u-C1R-function/m-p/1161634#M26630</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="font-size: 12px;"&gt;Tatyana&lt;/SPAN&gt;,&lt;/P&gt;

&lt;P&gt;The maximal difference is indeed 1. Why is it expected? isn't it the same algorithm?&lt;/P&gt;

&lt;P&gt;in addition, the main issue is that the destination image histogram is strange. Please take a look at the attached chart.&lt;/P&gt;

&lt;P&gt;thanks,&lt;/P&gt;

&lt;P&gt;Ella&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 09:55:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/bad-result-for-ippiResizeSuper-8u-C1R-function/m-p/1161634#M26630</guid>
      <dc:creator>P__Ella</dc:creator>
      <dc:date>2018-07-31T09:55:49Z</dc:date>
    </item>
    <item>
      <title>Ella,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/bad-result-for-ippiResizeSuper-8u-C1R-function/m-p/1161635#M26631</link>
      <description>&lt;P&gt;Ella,&lt;/P&gt;

&lt;P&gt;It's expected due to rounding. The algorithms' implementations are in floats.&lt;/P&gt;

&lt;P&gt;Why do you think that the destination image histogram is strange? How do you calculate the histogram?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Tatyana&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 10:30:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/bad-result-for-ippiResizeSuper-8u-C1R-function/m-p/1161635#M26631</guid>
      <dc:creator>Tatyana_B_Intel</dc:creator>
      <dc:date>2018-07-31T10:30:27Z</dc:date>
    </item>
    <item>
      <title>the histogram is calculate in</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/bad-result-for-ippiResizeSuper-8u-C1R-function/m-p/1161636#M26632</link>
      <description>&lt;P&gt;the histogram is calculate in a simple way - counting the number of &lt;SPAN style="font-size: 13.008px;"&gt;occurrences&lt;/SPAN&gt; of each gray level (from 0 to 255)&lt;/P&gt;

&lt;P&gt;the histogram shape should be smooth. In this histogram, it seems that there are much more odd values, that even. part of the histogram's values, from gray level 230 to 245:&lt;/P&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;486&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;701&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;331&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;492&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;222&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;334&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;149&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;267&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;166&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;255&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;159&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;252&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;164&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;391&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;459&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;801&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 31 Jul 2018 10:59:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/bad-result-for-ippiResizeSuper-8u-C1R-function/m-p/1161636#M26632</guid>
      <dc:creator>P__Ella</dc:creator>
      <dc:date>2018-07-31T10:59:49Z</dc:date>
    </item>
    <item>
      <title>Ella,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/bad-result-for-ippiResizeSuper-8u-C1R-function/m-p/1161637#M26633</link>
      <description>&lt;P&gt;Ella,&lt;/P&gt;

&lt;P&gt;Thank you for explanation!&lt;/P&gt;

&lt;P&gt;I've checked the histograms for several random images using &lt;SPAN style="font-size: 12px;"&gt;ippiResizeSuper_8u_C1R&amp;nbsp;&lt;/SPAN&gt;and received more even values than the odd ones.&lt;/P&gt;

&lt;P&gt;And it is expected for&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;ippiResizeSuper_8u_C1R due to "&lt;/SPAN&gt;&lt;SPAN style="color: rgb(85, 85, 85); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 15px;"&gt;nearest even&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;" rounding mode. Please see the documentation:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;&lt;A href="https://software.intel.com/en-us/ipp-dev-reference-rounding-mode-1&amp;nbsp;" target="_blank"&gt;https://software.intel.com/en-us/ipp-dev-reference-rounding-mode-1&amp;nbsp;&lt;/A&gt;;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The internal implementation of&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;ippiResizeSqrPixel_8u_C1R was different.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 12px;"&gt;Tatyana&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 13:14:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/bad-result-for-ippiResizeSuper-8u-C1R-function/m-p/1161637#M26633</guid>
      <dc:creator>Tatyana_B_Intel</dc:creator>
      <dc:date>2018-07-31T13:14:33Z</dc:date>
    </item>
    <item>
      <title>ok, thanks for the</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/bad-result-for-ippiResizeSuper-8u-C1R-function/m-p/1161638#M26634</link>
      <description>&lt;P&gt;ok, thanks for the clarification.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jul 2018 13:47:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/bad-result-for-ippiResizeSuper-8u-C1R-function/m-p/1161638#M26634</guid>
      <dc:creator>P__Ella</dc:creator>
      <dc:date>2018-07-31T13:47:19Z</dc:date>
    </item>
  </channel>
</rss>

