<?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: Incorrect result from ippiCrossCorr**? in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Incorrect-result-from-ippiCrossCorr/m-p/875368#M9435</link>
    <description>Update :-)
&lt;BR /&gt;
&lt;BR /&gt;It seems the problem is a step size for the template less than 4. I didn't use the Intel allocation functions for a reason (I have my own library with its own data structures that I normally use). I remember reading that Intel allocations should be used for efficiency, but I might have missed (?) a requirement statement. Also, the ippiCrossCorr* function does not indicate that anything is wrong. Can anyone comment on this?
&lt;BR /&gt;
&lt;BR /&gt;In any case, here is a more streamlined version of my code. Set nT to 4, and all is well.
&lt;BR /&gt;
&lt;BR /&gt;#include 
&lt;BR /&gt;#define uint8 unsigned char
&lt;BR /&gt;#define nM 5
&lt;BR /&gt;#define nT 3
&lt;BR /&gt;#define nR (1+nM-nT)
&lt;BR /&gt;int main()
&lt;BR /&gt;{
&lt;BR /&gt;  uint8 M[nM][nM] = {
&lt;BR /&gt;    {  0, 100,   0},
&lt;BR /&gt;    {100, 100, 100},
&lt;BR /&gt;    {  0, 100,   0},
&lt;BR /&gt;  };
&lt;BR /&gt;  uint8 T[nT][nT] = {
&lt;BR /&gt;    {  0, 100,   0},
&lt;BR /&gt;    {100, 100, 100},
&lt;BR /&gt;    {  0, 100,   0},
&lt;BR /&gt;  };
&lt;BR /&gt;  float Rf[nR][nR] = {0};
&lt;BR /&gt;  int res;
&lt;BR /&gt;  IppiSize srcRoiSize = {nM, nM};
&lt;BR /&gt;  IppiSize tplRoiSize = {nT, nT};
&lt;BR /&gt;  res=ippiCrossCorrValid_NormLevel_8u32f_C1R((void*)M,nM,srcRoiSize,(void*)T,nT,tplRoiSize,(void*)Rf,nR*sizeof(float));
&lt;BR /&gt;	return 0;
&lt;BR /&gt;}
&lt;BR /&gt;</description>
    <pubDate>Thu, 22 Mar 2007 20:56:50 GMT</pubDate>
    <dc:creator>bernt</dc:creator>
    <dc:date>2007-03-22T20:56:50Z</dc:date>
    <item>
      <title>Incorrect result from ippiCrossCorr**?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Incorrect-result-from-ippiCrossCorr/m-p/875367#M9434</link>
      <description>(I've also seeked premier support help for this, but to maybe speed things, here goes...)
&lt;BR /&gt;
&lt;BR /&gt;I experience weird behaviour with the ippi cross correlation routine(s), as follows:
&lt;BR /&gt;
&lt;BR /&gt;Under is my sample code. I would expect the value of Rf[0][0] to be 1, but it is in fact 0.54999.... The other values are correct as far as I can see. What can I have done wrong?
&lt;BR /&gt;
&lt;BR /&gt;#include 
&lt;BR /&gt;#define uint8 unsigned char
&lt;BR /&gt;int main()
&lt;BR /&gt;{
&lt;BR /&gt;  uint8 M[5][5] = {
&lt;BR /&gt;    {  0, 100,   0, 0, 0},
&lt;BR /&gt;    {100, 100, 100, 0, 0},
&lt;BR /&gt;    {  0, 100,   0, 0, 0},
&lt;BR /&gt;    {  0,   0,   0, 0, 0},
&lt;BR /&gt;    {  0,   0,   0, 0, 0}
&lt;BR /&gt;  };
&lt;BR /&gt;  uint8 T[3][3] = {
&lt;BR /&gt;    {  0, 100,   0},
&lt;BR /&gt;    {100, 100, 100},
&lt;BR /&gt;    {  0, 100,   0}
&lt;BR /&gt;  };
&lt;BR /&gt;  float Rf[3][3] = {0};
&lt;BR /&gt;  IppiSize srcRoiSize,tplRoiSize;
&lt;BR /&gt;  srcRoiSize.width=5;
&lt;BR /&gt;  srcRoiSize.height=5;
&lt;BR /&gt;  tplRoiSize.width=3;
&lt;BR /&gt;  tplRoiSize.height=3;
&lt;BR /&gt;  ippiCrossCorrValid_NormLevel_8u32f_C1R((void*)M,5,srcRoiSize,(void*)T,3,tplRoiSize,(void*)Rf,3*sizeof(float));
&lt;BR /&gt;	return 0;
&lt;BR /&gt;}
&lt;BR /&gt;I can supply a Matlab script that does the same thing, if anyone's interested!</description>
      <pubDate>Thu, 22 Mar 2007 19:19:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Incorrect-result-from-ippiCrossCorr/m-p/875367#M9434</guid>
      <dc:creator>bernt</dc:creator>
      <dc:date>2007-03-22T19:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect result from ippiCrossCorr**?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Incorrect-result-from-ippiCrossCorr/m-p/875368#M9435</link>
      <description>Update :-)
&lt;BR /&gt;
&lt;BR /&gt;It seems the problem is a step size for the template less than 4. I didn't use the Intel allocation functions for a reason (I have my own library with its own data structures that I normally use). I remember reading that Intel allocations should be used for efficiency, but I might have missed (?) a requirement statement. Also, the ippiCrossCorr* function does not indicate that anything is wrong. Can anyone comment on this?
&lt;BR /&gt;
&lt;BR /&gt;In any case, here is a more streamlined version of my code. Set nT to 4, and all is well.
&lt;BR /&gt;
&lt;BR /&gt;#include 
&lt;BR /&gt;#define uint8 unsigned char
&lt;BR /&gt;#define nM 5
&lt;BR /&gt;#define nT 3
&lt;BR /&gt;#define nR (1+nM-nT)
&lt;BR /&gt;int main()
&lt;BR /&gt;{
&lt;BR /&gt;  uint8 M[nM][nM] = {
&lt;BR /&gt;    {  0, 100,   0},
&lt;BR /&gt;    {100, 100, 100},
&lt;BR /&gt;    {  0, 100,   0},
&lt;BR /&gt;  };
&lt;BR /&gt;  uint8 T[nT][nT] = {
&lt;BR /&gt;    {  0, 100,   0},
&lt;BR /&gt;    {100, 100, 100},
&lt;BR /&gt;    {  0, 100,   0},
&lt;BR /&gt;  };
&lt;BR /&gt;  float Rf[nR][nR] = {0};
&lt;BR /&gt;  int res;
&lt;BR /&gt;  IppiSize srcRoiSize = {nM, nM};
&lt;BR /&gt;  IppiSize tplRoiSize = {nT, nT};
&lt;BR /&gt;  res=ippiCrossCorrValid_NormLevel_8u32f_C1R((void*)M,nM,srcRoiSize,(void*)T,nT,tplRoiSize,(void*)Rf,nR*sizeof(float));
&lt;BR /&gt;	return 0;
&lt;BR /&gt;}
&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Mar 2007 20:56:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Incorrect-result-from-ippiCrossCorr/m-p/875368#M9435</guid>
      <dc:creator>bernt</dc:creator>
      <dc:date>2007-03-22T20:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect result from ippiCrossCorr**?</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Incorrect-result-from-ippiCrossCorr/m-p/875369#M9436</link>
      <description>&lt;P&gt;Hello, could you please try IPP 5.2 beta? We were not able to reproduce the issue on IPP 5.2 beta&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2007 22:47:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Incorrect-result-from-ippiCrossCorr/m-p/875369#M9436</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2007-03-26T22:47:06Z</dc:date>
    </item>
  </channel>
</rss>

