<?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 For these to functions:  in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Definition-for-IppiHistogramSpec-IppiFilterBorderSpec/m-p/1157071#M26470</link>
    <description>&lt;P&gt;For these to functions:&amp;nbsp;&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;ippiErode_8u_C1IR,ippiDilate_8u_C1IR&amp;nbsp; are inplace function,&amp;nbsp; there some out-place version function:&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;A href="https://software.intel.com/en-us/ipp-dev-reference-erode" target="_blank"&gt;https://software.intel.com/en-us/ipp-dev-reference-erode&lt;/A&gt;&lt;BR /&gt;
	&lt;A href="https://software.intel.com/en-us/ipp-dev-reference-dilate" target="_blank"&gt;https://software.intel.com/en-us/ipp-dev-reference-dilate&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;They can used as the replacement.&amp;nbsp;&lt;BR /&gt;
	&lt;BR /&gt;
	thanks,&lt;BR /&gt;
	Chao&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Mar 2018 02:55:59 GMT</pubDate>
    <dc:creator>Chao_Y_Intel</dc:creator>
    <dc:date>2018-03-26T02:55:59Z</dc:date>
    <item>
      <title>Definition for IppiHistogramSpec ,IppiFilterBorderSpec</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Definition-for-IppiHistogramSpec-IppiFilterBorderSpec/m-p/1157069#M26468</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;Since moving to new IPP version 9.0 few of the APIs in the Ippi library are not present and hence we started to use the substitute as mentioned in intel's link (https://software.intel.com/en-us/ipp-dev-reference-appendix-c-removed-functions-for-image-and-video-processing#IPPI).For the following new APIs I need to define a local type as struct for the new parameters that I have to use with the new methods.We use IPP libraries&amp;nbsp; in C# and use dllimport to read the APIs in the assemblies of IPP. So for the parameter type declaration we need to know the type definition,in the ippi.h header file I saw the typedef but no body was present .Can you provide the information for the below API parameters ?&lt;/P&gt;

&lt;P&gt;IPPAPI(IppStatus,&amp;nbsp;ippiHistogram_32f_C1R,&amp;nbsp;(const&amp;nbsp;Ipp32f*&amp;nbsp;pSrc,&amp;nbsp;int&amp;nbsp;srcStep,&amp;nbsp;IppiSize&amp;nbsp;roiSize,&amp;nbsp;Ipp32u*&amp;nbsp;pHist&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;const&amp;nbsp;IppiHistogramSpec*&amp;nbsp;pSpec,&amp;nbsp;Ipp8u*&amp;nbsp;pBuffer&lt;/P&gt;

&lt;P&gt;IPPAPI(&amp;nbsp;IppStatus,&amp;nbsp;ippiFilterBorderInit_32f,&amp;nbsp;(&amp;nbsp;const&amp;nbsp;Ipp32f*&amp;nbsp;pKernel,&amp;nbsp;IppiSize&amp;nbsp;&amp;nbsp;kernelSize,&amp;nbsp;&amp;nbsp;IppDataType&amp;nbsp;dataType,&amp;nbsp;int&amp;nbsp;numChannels&amp;nbsp;,&amp;nbsp;IppRoundMode&amp;nbsp;roundMode,&amp;nbsp;IppiFilterBorderSpec*&amp;nbsp;pSpec&amp;nbsp;))&lt;/P&gt;

&lt;P&gt;In these the type definition is required for us to be able to use the parameters namely&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;&lt;STRONG&gt;IppiHistogramSpec &amp;amp;&amp;nbsp;IppiFilterBorderSpec&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;For the below APIs the workaround mentioned in the Appendix link was not present .Please tell us that as well what to use in place of these.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;ippiErode_8u_C1IR,ippiDilate_8u_C1IR&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Leo&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 06:56:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Definition-for-IppiHistogramSpec-IppiFilterBorderSpec/m-p/1157069#M26468</guid>
      <dc:creator>MM_Leo</dc:creator>
      <dc:date>2018-03-21T06:56:59Z</dc:date>
    </item>
    <item>
      <title>Leo, </title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Definition-for-IppiHistogramSpec-IppiFilterBorderSpec/m-p/1157070#M26469</link>
      <description>&lt;P&gt;Leo,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;IppiXXXXSpec is an internal structure, you can use the following to initialize&amp;nbsp; it:&amp;nbsp; &amp;nbsp;1) use&amp;nbsp;&amp;nbsp;ippiHistogramGetBufferSize to get the size of spec, and some internal buffer,&amp;nbsp; 2)allocate the memory for them.&amp;nbsp; 3) use&amp;nbsp; xxxInit() function to&amp;nbsp;&amp;nbsp;initialize the struct:&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ippiHistogramGetBufferSize(.... &amp;amp;sizeHistObj, &amp;amp;sizeBuffer);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; pHistObj = (IppiHistogramSpec*)ippsMalloc_8u( sizeHistObj );&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; pBuffer = (Ipp8u*)ippsMalloc_8u( sizeBuffer );&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ippiHistogramUniformInit( ipp8u, lowerLevel, upperLevel, nLevels, 1, pHistObj );&lt;/SPAN&gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; sts = ippiHistogram_8u_C1R( pImg, WIDTH, roi, pHistVec, pHistObj, pBuffer );&lt;/P&gt;

&lt;P&gt;You can find some example at the IPP manual:&lt;BR /&gt;
	histogram: &lt;A href="https://software.intel.com/en-us/ipp-dev-reference-histogram" target="_blank"&gt;https://software.intel.com/en-us/ipp-dev-reference-histogram&lt;/A&gt;&lt;BR /&gt;
	&lt;SPAN class="filepath" style="box-sizing: border-box; color: rgb(0, 113, 197); font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13px;"&gt;filter border:&amp;nbsp;&amp;nbsp;&lt;A href="https://software.intel.com/node/9ab03675-1480-4497-be39-ac3c8afe145f" style="box-sizing: border-box; color: rgb(0, 113, 197); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px;" target="_blank"&gt;FilterBorder.c&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
	Chao&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 02:47:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Definition-for-IppiHistogramSpec-IppiFilterBorderSpec/m-p/1157070#M26469</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2018-03-26T02:47:50Z</dc:date>
    </item>
    <item>
      <title>For these to functions: </title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Definition-for-IppiHistogramSpec-IppiFilterBorderSpec/m-p/1157071#M26470</link>
      <description>&lt;P&gt;For these to functions:&amp;nbsp;&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;ippiErode_8u_C1IR,ippiDilate_8u_C1IR&amp;nbsp; are inplace function,&amp;nbsp; there some out-place version function:&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;A href="https://software.intel.com/en-us/ipp-dev-reference-erode" target="_blank"&gt;https://software.intel.com/en-us/ipp-dev-reference-erode&lt;/A&gt;&lt;BR /&gt;
	&lt;A href="https://software.intel.com/en-us/ipp-dev-reference-dilate" target="_blank"&gt;https://software.intel.com/en-us/ipp-dev-reference-dilate&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;They can used as the replacement.&amp;nbsp;&lt;BR /&gt;
	&lt;BR /&gt;
	thanks,&lt;BR /&gt;
	Chao&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 02:55:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Definition-for-IppiHistogramSpec-IppiFilterBorderSpec/m-p/1157071#M26470</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2018-03-26T02:55:59Z</dc:date>
    </item>
    <item>
      <title>Hi Chao,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Definition-for-IppiHistogramSpec-IppiFilterBorderSpec/m-p/1157072#M26471</link>
      <description>&lt;P&gt;Hi Chao,&lt;/P&gt;

&lt;P&gt;Thank you for information on&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;&amp;nbsp;ippiErode_8u_C1IR,ippiDilate_8u_C1IR ,it is quite useful.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;For&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;IppiXXXXSpec initialization ,I have used the&amp;nbsp;&amp;nbsp; ippiHistogramGetBufferSize(.... &amp;amp;sizeHistObj, &amp;amp;sizeBuffer). However the question remains on how to declare the&amp;nbsp;IppiXXXXSpec structure in my C# class ? Since I don't know the internal members ,here is what I have declared it as, to be able to use it as the parameters required my the new methods.&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE style="font-family: Consolas; color: black; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"&gt;[&lt;SPAN style="color:#2b91af;"&gt;StructLayout&lt;/SPAN&gt;(&lt;SPAN style="color:#2b91af;"&gt;LayoutKind&lt;/SPAN&gt;.Sequential,&amp;nbsp;CharSet&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color:#2b91af;"&gt;CharSet&lt;/SPAN&gt;.Ansi)]
&lt;SPAN style="color:blue;"&gt;public&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color:blue;"&gt;struct&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color:#2b91af;"&gt;HistogramSpec&lt;/SPAN&gt;&amp;nbsp;{&amp;nbsp;}
 
[&lt;SPAN style="color:#2b91af;"&gt;StructLayout&lt;/SPAN&gt;(&lt;SPAN style="color:#2b91af;"&gt;LayoutKind&lt;/SPAN&gt;.Sequential,&amp;nbsp;CharSet&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color:#2b91af;"&gt;CharSet&lt;/SPAN&gt;.Ansi)]
&lt;SPAN style="color:blue;"&gt;public&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color:blue;"&gt;struct&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color:#2b91af;"&gt;FilterBorderSpec&lt;/SPAN&gt;&amp;nbsp;{&amp;nbsp;}&lt;/PRE&gt;

&lt;P&gt;Please let me know declaring like this is sufficient or do I need to do it differently?&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Leo&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 05:44:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Definition-for-IppiHistogramSpec-IppiFilterBorderSpec/m-p/1157072#M26471</guid>
      <dc:creator>MM_Leo</dc:creator>
      <dc:date>2018-03-26T05:44:05Z</dc:date>
    </item>
    <item>
      <title>Hi Chao,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Definition-for-IppiHistogramSpec-IppiFilterBorderSpec/m-p/1157073#M26472</link>
      <description>&lt;P&gt;Hi Chao,&lt;/P&gt;

&lt;P&gt;Can you give sample code to use&amp;nbsp;&lt;SPAN style="color: rgb(102, 102, 102); font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13px;"&gt;ippiErode_8u_C1R_L and&amp;nbsp;ippiDilate_8u_C1R_L from&amp;nbsp;ippcv_l library as there are addiotional parameters in these 2 methods?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(102, 102, 102); font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13px;"&gt;Leo&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 10:48:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Definition-for-IppiHistogramSpec-IppiFilterBorderSpec/m-p/1157073#M26472</guid>
      <dc:creator>MM_Leo</dc:creator>
      <dc:date>2018-03-26T10:48:31Z</dc:date>
    </item>
    <item>
      <title>Hi Chao,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Definition-for-IppiHistogramSpec-IppiFilterBorderSpec/m-p/1157074#M26473</link>
      <description>&lt;P&gt;Hi Chao,&lt;/P&gt;

&lt;P&gt;It will be highly helpful ,if you could provide sample on&amp;nbsp;&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;ippiErode_8u_C1R_L and&amp;nbsp;ippiDilate_8u_C1R_L from&amp;nbsp;ippcv_l.Below is how I have initialized it but it doesn't work ,&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px;"&gt;AccessViolationException&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;&amp;nbsp;is thrown for &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px;"&gt;ippiErodeGetBufferSize_L&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: 1em; color: rgb(43, 145, 175);"&gt;ipcvMorphStateL&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 1em;"&gt;*&amp;nbsp;iMorphStateLObjSpec;&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE style="font-family: Consolas; color: black; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"&gt;&lt;SPAN style="color:blue;"&gt;byte&lt;/SPAN&gt;*&amp;nbsp;pBuffer;
&lt;SPAN style="color:blue;"&gt;int&lt;/SPAN&gt;&amp;nbsp;sizeiMorphStateLObj;
&lt;SPAN style="color:blue;"&gt;int&lt;/SPAN&gt;&amp;nbsp;pBufferSize;
 
ippResult&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color:#2b91af;"&gt;ippcv_l&lt;/SPAN&gt;.ippiErodeGetBufferSize_L(kernelSize,&amp;nbsp;imageSizeWithBorder,&amp;nbsp;&lt;SPAN style="color:#2b91af;"&gt;IppDataType&lt;/SPAN&gt;.ipp8u,&amp;nbsp;1,&amp;nbsp;&amp;amp;pBufferSize);
ippResult&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color:#2b91af;"&gt;ippcv_l&lt;/SPAN&gt;.ippiErodeGetSpecSize_L(kernelSize,&amp;nbsp;imageSizeWithBorder,&amp;nbsp;&amp;amp;sizeiMorphStateLObj);
pBuffer&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color:#2b91af;"&gt;ipps&lt;/SPAN&gt;.ippsMalloc_8u(pBufferSize);
iMorphStateLObjSpec&amp;nbsp;=&amp;nbsp;(&lt;SPAN style="color:#2b91af;"&gt;ipcvMorphStateL&lt;/SPAN&gt;*)&lt;SPAN style="color:#2b91af;"&gt;ipps&lt;/SPAN&gt;.ippsMalloc_8u(sizeiMorphStateLObj);
ippResult&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color:#2b91af;"&gt;ippcv_l&lt;/SPAN&gt;.ippiErodeInit_L(imageSizeWithBorder,&amp;nbsp;pKernelMask,&amp;nbsp;kernelSize,&amp;nbsp;iMorphStateLObjSpec);

 
ippResult&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color:#2b91af;"&gt;ippcv_l&lt;/SPAN&gt;.ippiErode_8u_C1R_L(pImageAsBinaryMaskWithBorder&amp;nbsp;+&amp;nbsp;offsetBinaryMaskWithBorder,&amp;nbsp;imageSizeWithBorder.width,&amp;nbsp;pKernelMask,&amp;nbsp;kernelSize.width,&amp;nbsp;kernelSize
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,&amp;nbsp;&lt;SPAN style="color:#2b91af;"&gt;IppiBorderType&lt;/SPAN&gt;.ippBorderRepl,&amp;nbsp;borderValue,&amp;nbsp;iMorphStateLObjSpec,&amp;nbsp;pBuffer);&lt;/PRE&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Leo&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 08:13:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Definition-for-IppiHistogramSpec-IppiFilterBorderSpec/m-p/1157074#M26473</guid>
      <dc:creator>MM_Leo</dc:creator>
      <dc:date>2018-04-19T08:13:56Z</dc:date>
    </item>
    <item>
      <title>Leo,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Definition-for-IppiHistogramSpec-IppiFilterBorderSpec/m-p/1157075#M26474</link>
      <description>&lt;P&gt;Leo,&lt;/P&gt;

&lt;P&gt;Could you post the value/definition on:&lt;BR /&gt;
	kernelSize,&amp;nbsp;imageSizeWithBorder,&amp;nbsp;&amp;nbsp;pBufferSize,&lt;BR /&gt;
	&lt;BR /&gt;
	and it the processors, IPP versions you are working on. We want to reproduce this issue. This APIs is simple, I do not expect it will crash.&lt;BR /&gt;
	&lt;BR /&gt;
	Thanks,&lt;BR /&gt;
	Chao&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 05:35:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Definition-for-IppiHistogramSpec-IppiFilterBorderSpec/m-p/1157075#M26474</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2018-04-20T05:35:18Z</dc:date>
    </item>
    <item>
      <title>Hi Chao,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Definition-for-IppiHistogramSpec-IppiFilterBorderSpec/m-p/1157076#M26475</link>
      <description>&lt;P&gt;Hi Chao,&lt;/P&gt;

&lt;P&gt;Below are the required details .IPP version (IPP2017.0.3.1087&amp;nbsp;) and from assembly&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;ippcv.dll&lt;/SPAN&gt;&lt;/P&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;kernelsize: 3,3&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;imageSizeWithBorder 419,419&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;pBufferSize : 0&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;Leo&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Apr 2018 14:17:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Definition-for-IppiHistogramSpec-IppiFilterBorderSpec/m-p/1157076#M26475</guid>
      <dc:creator>MM_Leo</dc:creator>
      <dc:date>2018-04-23T14:17:07Z</dc:date>
    </item>
  </channel>
</rss>

