<?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 Ok. Could you add please next in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Issues-with-ippiFilterBox-32f-C1R/m-p/1144511#M26181</link>
    <description>&lt;P&gt;Ok. Could you add please next lines to get IPP version:&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;    IppLibraryVersion* version;
    version = ippiGetLibVersion();
    printf("Name=%s\n", version-&amp;gt;Name);
    printf("Version=%s\n", version-&amp;gt;Version);
    printf("BuildDate=%s\n", version-&amp;gt;BuildDate);
&lt;/PRE&gt;

&lt;P&gt;And what is your OS - Win/Linux?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2019 22:52:02 GMT</pubDate>
    <dc:creator>Andrey_B_Intel</dc:creator>
    <dc:date>2019-11-22T22:52:02Z</dc:date>
    <item>
      <title>Issues with ippiFilterBox_32f_C1R()</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Issues-with-ippiFilterBox-32f-C1R/m-p/1144508#M26178</link>
      <description>&lt;P&gt;Ipp32f* src = ippsMalloc_32f(width * hieght);&lt;BR /&gt;int srcStep = width * sizeof(Ipp32f);&lt;BR /&gt;IppiSize srcRoi = { width, height };&lt;BR /&gt;//populate the array with floats&lt;BR /&gt;int dstX = width + 4;&lt;BR /&gt;int dstY = height + 4;&lt;BR /&gt;Ipp32f* dst = ippsMalloc_32f(dstX * dstY);&lt;BR /&gt;IppiSize dstRoi = { dstX, dstY };&lt;BR /&gt;int dstStep = dstX * sizeof(Ipp32f);&lt;BR /&gt;int topBorderHeight = 2;&lt;BR /&gt;int leftBorderWidth = 2;&lt;BR /&gt;IppStatus boxStatus = ippiCopyReplicateBorder_32f_C1R(src, srcStep, srcRoi, dst, dstStep, dstRoi, topBorderHeight, leftBorderWidth);&lt;BR /&gt;//handle errors if any&lt;BR /&gt;int dstBorderedStep = dstRoi.width * sizeof(Ipp32f);&lt;BR /&gt;IppiSize maskSize{ 3, 3 };&lt;BR /&gt;IppiPoint anchor{ 1, 1 };&lt;BR /&gt;boxStatus = ippiFilterBox_32f_C1R(dst + dstX * 2 + anchor.x + anchor.y, dstBorderedStep, src, srcStep, srcRoi, maskSize, anchor);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The filtered result has three or four horizontal lines that divide the image into three or four parts.&lt;BR /&gt;Where in the code should I change to fix the issue?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 19:10:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Issues-with-ippiFilterBox-32f-C1R/m-p/1144508#M26178</guid>
      <dc:creator>Philips_1</dc:creator>
      <dc:date>2019-11-21T19:10:44Z</dc:date>
    </item>
    <item>
      <title>Hi Philips_1.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Issues-with-ippiFilterBox-32f-C1R/m-p/1144509#M26179</link>
      <description>&lt;P&gt;Hi Philips_1.&lt;/P&gt;&lt;P&gt;Could you please tell us the width and height of your reproducer and used IPP version? Also the function&amp;nbsp;ippiFilterBox_32f_C1R was deprecated after IPP8.2. Is it possible for you to update to IPP2019.5 and call&amp;nbsp;function ippiFilterBoxBorder_32f_C1R? &lt;A href="https://software.intel.com/en-us/ipp-dev-reference-filterboxborder"&gt;https://software.intel.com/en-us/ipp-dev-ference-filterboxborder&lt;/A&gt;. It supports borders itself. Link to example&amp;nbsp;&lt;A href="https://software.intel.com/en-us/ipp-dev-reference-filterboxborder-sample"&gt;https://software.intel.com/en-us/ipp-dev-reference-filterboxborder-sample&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks!&lt;/P&gt;&lt;P&gt;p.s. I've modified your reproducer. Could you try it please?&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;void main()
{
Ipp32f* src = ippsMalloc_32f(width * height);
int srcStep = width * sizeof(Ipp32f);
IppiSize srcRoi = { width, height };
//populate the array with floats
int dstX = width + 2;
int dstY = height + 2;
Ipp32f* dst = ippsMalloc_32f(dstX * dstY);
IppiSize dstRoi = { dstX, dstY };
int dstStep = dstX * sizeof(Ipp32f);
int topBorderHeight = 1;
int leftBorderWidth = 1;
int y, x;
for (y = 0; y &amp;lt; height; y++) {
    for (x = 0; x &amp;lt; width; x++) {
        src[width*y + x] = y + x;
    }
}

IppStatus boxStatus = ippiCopyReplicateBorder_32f_C1R(src, srcStep, srcRoi, dst, dstStep, dstRoi, topBorderHeight, leftBorderWidth);
//handle errors if any
int dstBorderedStep = dstRoi.width * sizeof(Ipp32f);
IppiSize maskSize = { 3, 3 };
IppiPoint anchor = { 1, 1 };
boxStatus = ippiFilterBox_32f_C1R(dst + dstX * anchor.y + anchor.x, dstBorderedStep, src, srcStep, srcRoi, maskSize, anchor);
}
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 09:59:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Issues-with-ippiFilterBox-32f-C1R/m-p/1144509#M26179</guid>
      <dc:creator>Andrey_B_Intel</dc:creator>
      <dc:date>2019-11-22T09:59:30Z</dc:date>
    </item>
    <item>
      <title>Thanks Andrey.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Issues-with-ippiFilterBox-32f-C1R/m-p/1144510#M26180</link>
      <description>&lt;P&gt;Thanks Andrey.&lt;/P&gt;&lt;P&gt;int width = 110;&lt;BR /&gt;int height = 280;&lt;/P&gt;&lt;P&gt;The src has been populated before passed in, so I removed the loop.&lt;/P&gt;&lt;P&gt;The final image is still divided horizontally.&lt;/P&gt;&lt;P&gt;I haven't updated to IPP2019.5 and thought these two functions should work in my case.&lt;/P&gt;&lt;P&gt;I tried to add "thicker" border like "int topBorderHeight = 1;" and also increase the mask and anchor size. That added more horizontal sections in the final image. Does that give you any clue on what is wrong.&lt;/P&gt;&lt;P&gt;Thanks again and have a great weekend.&lt;/P&gt;&lt;P&gt;void main()&lt;BR /&gt;{&lt;BR /&gt;int width = 110;&lt;BR /&gt;int height = 280;&lt;BR /&gt;Ipp32f* src = ippsMalloc_32f(width * height);&lt;BR /&gt;int srcStep = width * sizeof(Ipp32f);&lt;BR /&gt;IppiSize srcRoi = { width, height };&lt;BR /&gt;//This array has been populated with floats&lt;BR /&gt;int dstX = width + 2;&lt;BR /&gt;int dstY = height + 2;&lt;BR /&gt;Ipp32f* dst = ippsMalloc_32f(dstX * dstY);&lt;BR /&gt;IppiSize dstRoi = { dstX, dstY };&lt;BR /&gt;int dstStep = dstX * sizeof(Ipp32f);&lt;BR /&gt;int topBorderHeight = 1;&lt;BR /&gt;int leftBorderWidth = 1;&lt;/P&gt;&lt;P&gt;IppStatus boxStatus = ippiCopyReplicateBorder_32f_C1R(src, srcStep, srcRoi, dst, dstStep, dstRoi, topBorderHeight, leftBorderWidth);&lt;BR /&gt;int dstBorderedStep = dstRoi.width * sizeof(Ipp32f);&lt;BR /&gt;IppiSize maskSize = { 3, 3 };&lt;BR /&gt;IppiPoint anchor = { 1, 1 };&lt;BR /&gt;boxStatus = ippiFilterBox_32f_C1R(dst + dstX * anchor.y + anchor.x, dstBorderedStep, src, srcStep, srcRoi, maskSize, anchor);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 16:28:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Issues-with-ippiFilterBox-32f-C1R/m-p/1144510#M26180</guid>
      <dc:creator>Philips_1</dc:creator>
      <dc:date>2019-11-22T16:28:30Z</dc:date>
    </item>
    <item>
      <title>Ok. Could you add please next</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Issues-with-ippiFilterBox-32f-C1R/m-p/1144511#M26181</link>
      <description>&lt;P&gt;Ok. Could you add please next lines to get IPP version:&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;    IppLibraryVersion* version;
    version = ippiGetLibVersion();
    printf("Name=%s\n", version-&amp;gt;Name);
    printf("Version=%s\n", version-&amp;gt;Version);
    printf("BuildDate=%s\n", version-&amp;gt;BuildDate);
&lt;/PRE&gt;

&lt;P&gt;And what is your OS - Win/Linux?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 22:52:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Issues-with-ippiFilterBox-32f-C1R/m-p/1144511#M26181</guid>
      <dc:creator>Andrey_B_Intel</dc:creator>
      <dc:date>2019-11-22T22:52:02Z</dc:date>
    </item>
  </channel>
</rss>

