<?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: IPP Erode Access Violation Exception in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Erode-Access-Violation-Exception/m-p/1417328#M28118</link>
    <description>&lt;P&gt;Hi Jossue,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for posting on Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please share with us a complete working reproducer or a project file so that we could analyze/try reproducing your issue further? Besides this, we would like to recommend you use the latest version of IPP available if in case you are using an older version of IPP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Shanmukh.SS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Oct 2022 02:34:00 GMT</pubDate>
    <dc:creator>ShanmukhS_Intel</dc:creator>
    <dc:date>2022-10-10T02:34:00Z</dc:date>
    <item>
      <title>IPP Erode Access Violation Exception</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Erode-Access-Violation-Exception/m-p/1416713#M28117</link>
      <description>&lt;P&gt;I made a simple script using the ErodeBorder function in IPP, and I want to use ippiErode_1u_C1R_L. I am having trouble using ippiErode_1u_C1R_L I keep getting an AccessViolation Exception. First script shows a functioning code, second script shows an attempt to use ippiErode_1u_C1R_L.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Working Code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;
int width = 1600;
int height = 594;
int binSize = 118800;
int binStep = ceil(width / 8);
IppiSize roi = { width, height };

Ipp8u* workBin = (Ipp8u*)ippsMalloc_8u(binSize);
Ipp8u* defectMask = (Ipp8u*)ippsMalloc_8u(binSize);
Ipp8u* origBin = GetMask(); //Same size as workBin

Ipp8u mask[9] = { 1, 1, 1,
                  1, 0, 1,
                  1, 1, 1 };

IppiSize maskSize = { 3, 3 };
int pSpecSize = 0, pBufferSize = 0;

ippiMorphologyBorderGetSize_1u_C1R(roi, maskSize, &amp;amp;pSpecSize, &amp;amp;pBufferSize);
Ipp8u* pBuffer = (Ipp8u*)ippsMalloc_8u(pBufferSize);
IppiMorphState* pSpec = (IppiMorphState*)ippsMalloc_8u(pSpecSize);
ippiMorphologyBorderInit_1u_C1R(roi, mask, maskSize, pSpec, pBuffer);

ippiErodeBorder_1u_C1R(origBin, binStep, 0, workBin, binStep, 0, roi, ippBorderRepl, 0, pSpec, pBuffer);
ippiErodeBorder_1u_C1R(workBin, binStep, 0, defectMask, binStep, 0, roi, ippBorderRepl, 0, pSpec, pBuffer);
ippiErodeBorder_1u_C1R(defectMask, binStep, 0, workBin, binStep, 0, roi, ippBorderRepl, 0, pSpec, pBuffer);
ippiErodeBorder_1u_C1R(workBin, binStep, 0, defectMask, binStep, 0, roi, ippBorderRepl, 0, pSpec, pBuffer);&lt;/LI-CODE&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;P&gt;Throws Exception when calling ippiErode_1u_C1R_L():&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;int width = 1600;
int height = 594;
int binSize = 118800; 
int binStep = ceil(width / 8);

IppiSizeL roi_L = { width, height };
Ipp8u* workBin = (Ipp8u*)ippsMalloc_8u(binSize);
Ipp8u* defectMask = (Ipp8u*)ippsMalloc_8u(binSize);
Ipp8u* origBin = GetMask(); //Same size as workBin

Ipp8u mask[9] = { 1, 1, 1,
                  1, 0, 1,
                  1, 1, 1 };

IppiSizeL maskSize = { 3, 3 };
IppSizeL pSpecSize = 0, pBufferSize = 0;

ippiErodeGetBufferSize_L(roi_L, maskSize, ipp1u, 1, &amp;amp;pBufferSize);
ippiErodeGetSpecSize_L(roi_L, maskSize, &amp;amp;pSpecSize);
Ipp8u* pBuffer = (Ipp8u*)ippsMalloc_8u_L(pBufferSize);
IppiMorphStateL* pSpec = (IppiMorphStateL*)ippsMalloc_8u_L(pSpecSize);
IppStatus initSizeStat = ippiErodeInit_L(roi_L, mask, maskSize, pSpec);

ippiErode_1u_C1R_L(origBin, binStep, 0, workBin, binStep, 0, roi_L, ippBorderRepl, 0, pSpec, pBuffer);&lt;/LI-CODE&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;</description>
      <pubDate>Thu, 22 Sep 2022 21:50:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Erode-Access-Violation-Exception/m-p/1416713#M28117</guid>
      <dc:creator>JossueMedina</dc:creator>
      <dc:date>2022-09-22T21:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: IPP Erode Access Violation Exception</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Erode-Access-Violation-Exception/m-p/1417328#M28118</link>
      <description>&lt;P&gt;Hi Jossue,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for posting on Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please share with us a complete working reproducer or a project file so that we could analyze/try reproducing your issue further? Besides this, we would like to recommend you use the latest version of IPP available if in case you are using an older version of IPP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Shanmukh.SS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 02:34:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Erode-Access-Violation-Exception/m-p/1417328#M28118</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-10-10T02:34:00Z</dc:date>
    </item>
    <item>
      <title>Re:IPP Erode Access Violation Exception</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Erode-Access-Violation-Exception/m-p/1418967#M28125</link>
      <description>&lt;P&gt;Hi Jossue,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;A gentle reminder:&lt;/P&gt;&lt;P&gt;As we haven't heard back from you for a while, could you please let us know if there is any update regarding the issue? Please get back to us if the issue still persists with the necessary details mentioned in my earlier post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Oct 2022 05:31:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Erode-Access-Violation-Exception/m-p/1418967#M28125</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-10-03T05:31:33Z</dc:date>
    </item>
    <item>
      <title>Re:IPP Erode Access Violation Exception</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Erode-Access-Violation-Exception/m-p/1420653#M28129</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We assume your issue is resolved. 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;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Oct 2022 02:35:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/IPP-Erode-Access-Violation-Exception/m-p/1420653#M28129</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-10-10T02:35:25Z</dc:date>
    </item>
  </channel>
</rss>

