<?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: ippiCopyConstBorder got wrong value in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiCopyConstBorder-got-wrong-value/m-p/1415864#M28114</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Very appreciated for your reply! It works now.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Sep 2022 06:57:50 GMT</pubDate>
    <dc:creator>adaTao</dc:creator>
    <dc:date>2022-09-20T06:57:50Z</dc:date>
    <item>
      <title>ippiCopyConstBorder got wrong value</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiCopyConstBorder-got-wrong-value/m-p/1415177#M28111</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The wrong value I got after calling function&amp;nbsp;ippiCopyConstBorder_32f_C1R.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Code Example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adaTao_0-1663309398901.png" style="width: 636px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/33403i5142FE51C098DBAF/image-dimensions/636x202/is-moderation-mode/true?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="636" height="202" role="button" title="adaTao_0-1663309398901.png" alt="adaTao_0-1663309398901.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Got Wrong Value:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adaTao_1-1663309590749.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/33404i43E64B55BCEA17AE/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="adaTao_1-1663309590749.png" alt="adaTao_1-1663309590749.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This problem has been bothering me for two days,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for any help！&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 06:28:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiCopyConstBorder-got-wrong-value/m-p/1415177#M28111</guid>
      <dc:creator>adaTao</dc:creator>
      <dc:date>2022-09-16T06:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: ippiCopyConstBorder got wrong value</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiCopyConstBorder-got-wrong-value/m-p/1415599#M28112</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We looked into your code and made few changes to your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since size of ipp32f is 4 Bytes, srcstep will be 32(i.e 8x4=32 Bytes) &amp;amp; dststep will be 28(i.e 7X4=28 Bytes).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;srcStep = 8 (Distance in bytes between starts of consecutive lines in the source image.)&lt;/P&gt;
&lt;P&gt;dstStep= 7 (Distance, in bytes, between the starting points of consecutive lines in the destination image.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please try the below code and let us know if it helps?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;#include&amp;lt;iostream&amp;gt;
#include &amp;lt;stdio.h&amp;gt;
#include&amp;lt;ipp.h&amp;gt;
int main()
{
    Ipp32f src[8 * 4] = { 3.5, 3.5, 3.5, 3.0, 3.0, 8.0, 8.0, 8.0,
              3.0, 2.0, 1.0, 2.0, 3.0, 8.0, 8.0, 8.0,
              3.0, 2.0, 1.0, 2.0, 3.0, 8.0, 8.0, 8.0,
              3.0, 3.0, 3.0, 3.0, 3.0, 8.0, 8.0, 8.0 };
    Ipp32f dst[8 * 6]={0};
    IppiSize srcRoi = { 5, 4 };
    IppiSize dstRoi = { 7, 6 };
    int borderWidth = 1;
    int borderHeight = 1;
    int borderVal = 0;

    ippiCopyConstBorder_32f_C1R(src, 32, srcRoi, dst, 28, dstRoi, borderHeight, borderWidth, borderVal);
    for (int i = 0; i &amp;lt; 42; i++)
    {
        printf("%.1f ", dst[i]);
        if ((i + 1) % 7 == 0)
            printf("\n");

    }

}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find the below screenshot for the expected output.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NoorjahanSk_Intel_0-1663584839796.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/33433iACF183246727826A/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="NoorjahanSk_Intel_0-1663584839796.png" alt="NoorjahanSk_Intel_0-1663584839796.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Noorjahan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 11:10:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiCopyConstBorder-got-wrong-value/m-p/1415599#M28112</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2022-09-19T11:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: ippiCopyConstBorder got wrong value</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiCopyConstBorder-got-wrong-value/m-p/1415864#M28114</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Very appreciated for your reply! It works now.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 06:57:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiCopyConstBorder-got-wrong-value/m-p/1415864#M28114</guid>
      <dc:creator>adaTao</dc:creator>
      <dc:date>2022-09-20T06:57:50Z</dc:date>
    </item>
    <item>
      <title>Re:ippiCopyConstBorder got wrong value</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiCopyConstBorder-got-wrong-value/m-p/1416166#M28115</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for the confirmation.&lt;/P&gt;&lt;P&gt;As this issue has been resolved, we will no longer respond to this thread. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Noorjahan&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Sep 2022 06:33:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiCopyConstBorder-got-wrong-value/m-p/1416166#M28115</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2022-09-21T06:33:53Z</dc:date>
    </item>
  </channel>
</rss>

