<?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 ippiAbsDiff_32f_C1R gives ippStsStepErr in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiAbsDiff-32f-C1R-gives-ippStsStepErr/m-p/910940#M14207</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I think you misunderstood the step parameter. It isn't the width of the image but the length between two lines in bytes. So in your case, where there's no padding, that would be 160*sizeof(float) = 160 * 4&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Matthieu&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jan 2010 09:29:05 GMT</pubDate>
    <dc:creator>matthieu_darbois</dc:creator>
    <dc:date>2010-01-20T09:29:05Z</dc:date>
    <item>
      <title>ippiAbsDiff_32f_C1R gives ippStsStepErr</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiAbsDiff-32f-C1R-gives-ippStsStepErr/m-p/910939#M14206</link>
      <description>&lt;P&gt;I'm calling ippiAbsDiff_32f_C1R and it returns ippStsStepErr. Not sure why because I am pretty sure I'm passing in the correct parameters.&lt;/P&gt;
&lt;P&gt;My C# code:&lt;/P&gt;
&lt;P&gt;#if( x64 )&lt;BR /&gt; internal const string libname = "ippcvem64t-6.0.dll";&lt;BR /&gt; #else&lt;BR /&gt; internal const string libname = "ippcv-6.0.dll";&lt;BR /&gt; #endif&lt;/P&gt;
&lt;P&gt;[SuppressUnmanagedCodeSecurity]&lt;BR /&gt; [DllImport(ipp.cv.libname)]&lt;BR /&gt; public static extern&lt;BR /&gt; IppStatus ippiAbsDiff_32f_C1R(float[] pSrc1, int src1Step, float[] pSrc2, int src2Step, float[] pDst, int dstStep,&lt;BR /&gt; IppiSize roiSize);&lt;/P&gt;
&lt;P&gt;public static float[] AbsoluteDifferenceGrayscale(float[] image1, float[] image2, Size imageSize)&lt;BR /&gt; {&lt;BR /&gt; float[] result = new float[image1.Length];&lt;BR /&gt; IppStatus status = ippiAbsDiff_32f_C1R(image1, imageSize.Width, image2, imageSize.Width,&lt;BR /&gt; result, imageSize.Width, new IppiSize(imageSize.Width, imageSize.Height));&lt;BR /&gt; ThrowExceptionForStatus(status);&lt;BR /&gt; return result;&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;image1 and image2 are a size of 19200 and imageSize is 160x120.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2010 22:20:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiAbsDiff-32f-C1R-gives-ippStsStepErr/m-p/910939#M14206</guid>
      <dc:creator>vikingsooner</dc:creator>
      <dc:date>2010-01-19T22:20:31Z</dc:date>
    </item>
    <item>
      <title>ippiAbsDiff_32f_C1R gives ippStsStepErr</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippiAbsDiff-32f-C1R-gives-ippStsStepErr/m-p/910940#M14207</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I think you misunderstood the step parameter. It isn't the width of the image but the length between two lines in bytes. So in your case, where there's no padding, that would be 160*sizeof(float) = 160 * 4&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Matthieu&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2010 09:29:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippiAbsDiff-32f-C1R-gives-ippStsStepErr/m-p/910940#M14207</guid>
      <dc:creator>matthieu_darbois</dc:creator>
      <dc:date>2010-01-20T09:29:05Z</dc:date>
    </item>
  </channel>
</rss>

