<?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 Re: Re:Replicate border of 1D data array in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Replicate-border-of-1D-data-array/m-p/1312694#M27753</link>
    <description>&lt;P&gt;Hi Shanmukh,&lt;/P&gt;
&lt;P&gt;As explained, my input is a pointer to an 1D array of float (Ipp32f), not of image type. But, it seems as a "Pointer to the source image ROI" is not be different from a pointer to an array, is it ?&lt;/P&gt;
&lt;P&gt;I will try to use CopyReplicateBoder with a vector of float as input data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Gilles&lt;/P&gt;</description>
    <pubDate>Tue, 07 Sep 2021 15:00:13 GMT</pubDate>
    <dc:creator>gilles73</dc:creator>
    <dc:date>2021-09-07T15:00:13Z</dc:date>
    <item>
      <title>Replicate border of 1D data array</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Replicate-border-of-1D-data-array/m-p/1312454#M27750</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Do you know a function or a code like the function &lt;A href="http://CopyReplicateBorder" target="_self"&gt;CopyReplicateBorder&lt;/A&gt; in the library of image processing to obtain the fast copy with the borders replication of&amp;nbsp; an one-dimensional array&amp;nbsp;Ipp32f ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;G.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 15:13:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Replicate-border-of-1D-data-array/m-p/1312454#M27750</guid>
      <dc:creator>gilles73</dc:creator>
      <dc:date>2021-09-06T15:13:00Z</dc:date>
    </item>
    <item>
      <title>Re:Replicate border of 1D data array</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Replicate-border-of-1D-data-array/m-p/1312636#M27752</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;I&gt;Do you know a function or a code like the function CopyReplicateBorder in the library of image processing?&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Please refer the below link which might help you.&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/ipp-dev-reference/top/volume-2-image-processing/image-data-exchange-and-initialization-functions/copyreplicateborder.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/documentation/ipp-dev-reference/top/volume-2-image-processing/image-data-exchange-and-initialization-functions/copyreplicateborder.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If this is not what you are looking for, Kindly provide us details more specific on the functionality so that we could assist you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Sep 2021 08:14:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Replicate-border-of-1D-data-array/m-p/1312636#M27752</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2021-09-07T08:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Replicate border of 1D data array</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Replicate-border-of-1D-data-array/m-p/1312694#M27753</link>
      <description>&lt;P&gt;Hi Shanmukh,&lt;/P&gt;
&lt;P&gt;As explained, my input is a pointer to an 1D array of float (Ipp32f), not of image type. But, it seems as a "Pointer to the source image ROI" is not be different from a pointer to an array, is it ?&lt;/P&gt;
&lt;P&gt;I will try to use CopyReplicateBoder with a vector of float as input data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Gilles&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 15:00:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Replicate-border-of-1D-data-array/m-p/1312694#M27753</guid>
      <dc:creator>gilles73</dc:creator>
      <dc:date>2021-09-07T15:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Replicate border of 1D data array</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Replicate-border-of-1D-data-array/m-p/1315417#M27766</link>
      <description>&lt;P&gt;Hi Gilles.&lt;/P&gt;
&lt;P&gt;You can either use&amp;nbsp;ippiCopyReplicateBorder_32f_C1R for 1d vector too or use pipeline of ippsSet_32f+ippsCopy_32f functions. See details in code below:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;#include &amp;lt;stdio.h&amp;gt;
#include "ipp.h"

#define LEN  16
#define BRD  4

IppStatus CopyReplicateBorder(const Ipp32f* pSrc, int srcLen,
    Ipp32f* pDst, int dstLen,    int left)
{
#define MIN(A,B) ((A)&amp;lt;(B))?(A):(B)
    ippsSet_32f(pSrc[0], pDst, MIN(left,dstLen));
    dstLen -= left;
    if (dstLen &amp;gt; 0) {
        pDst += left;
      ippsCopy_32f(pSrc, pDst, MIN(srcLen, dstLen));
      dstLen -= srcLen;
    }
    if (dstLen &amp;gt; 0) {
        pDst += srcLen;
        ippsSet_32f(pSrc[srcLen-1], pDst, dstLen);
    }
}
int main()
{
    Ipp32f pSrc[LEN];
    Ipp32f pDst[LEN+2*BRD];
    int n;
    for (n = 0; n &amp;lt; LEN; n++) {
        pSrc[n] = n + 1;
    }

#if 1
    IppiSize srcroi = {LEN          , 1};
    IppiSize dstroi = {LEN + 2 * BRD, 1};
    int topBorderHeight = 0;
    int leftBorderWidth = BRD;
    ippiCopyReplicateBorder_32f_C1R(
      pSrc, LEN*sizeof(Ipp32f), srcroi,
      pDst,(LEN+2*BRD) * sizeof(Ipp32f), dstroi,
        topBorderHeight, leftBorderWidth);
#else
    CopyReplicateBorder(pSrc,LEN,pDst, LEN+2*BRD, BRD);

#endif
    printf("pSrc:\n");
    for (n = 0; n &amp;lt; LEN; n++) {
        printf("%.2f ", pSrc[n]);
    }
    printf("\n");
    printf("pDst:\n");
    for (n = 0; n &amp;lt; LEN+2*BRD; n++) {
        printf("%.2f ", pDst[n]);
    }
    printf("\n");

    return 0;
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Andrey B.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 14:50:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Replicate-border-of-1D-data-array/m-p/1315417#M27766</guid>
      <dc:creator>Andrey_B_Intel</dc:creator>
      <dc:date>2021-09-17T14:50:57Z</dc:date>
    </item>
  </channel>
</rss>

