<?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: Cross correlation does not work in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Cross-correlation-does-not-work/m-p/947992#M18365</link>
    <description>&lt;DIV&gt;Please look to cross correlation folmula in the manual.&lt;/DIV&gt;
&lt;DIV&gt;The image mean is subtracted from the image ie zero result will be for constant image or template&lt;/DIV&gt;</description>
    <pubDate>Mon, 06 Feb 2006 20:41:30 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2006-02-06T20:41:30Z</dc:date>
    <item>
      <title>Cross correlation does not work</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Cross-correlation-does-not-work/m-p/947987#M18360</link>
      <description>&lt;DIV&gt;Here is my sample code that runs but return zero on all return matrix&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#0000ff"&gt;
&lt;P&gt;int&lt;/P&gt;&lt;/FONT&gt; _tmain(&lt;FONT color="#0000ff"&gt;int&lt;/FONT&gt; argc, _TCHAR* argv[])&lt;P&gt;&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;IppiSize srcRoiSize, tplRoiSize, SizeMat;&lt;/P&gt;
&lt;P&gt;Ipp8u* p_img_src, *p_img_templ,*imgMatr;&lt;/P&gt;
&lt;P&gt;srcRoiSize.height = 64;&lt;/P&gt;
&lt;P&gt;srcRoiSize.width = 64;&lt;/P&gt;
&lt;P&gt;tplRoiSize.height = 32;&lt;/P&gt;
&lt;P&gt;tplRoiSize.width = 32;&lt;/P&gt;
&lt;P&gt;SizeMat.height = 33;&lt;/P&gt;
&lt;P&gt;SizeMat.width = 33;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;int&lt;/FONT&gt; StepByteSrc,StepByteTempl,stepBytes;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;int&lt;/FONT&gt; max_x,max_y;&lt;/P&gt;
&lt;P&gt;Ipp8u max_val;&lt;/P&gt;
&lt;P&gt;p_img_src = ippiMalloc_8u_C1(64, 64,&amp;amp;StepByteSrc ); &lt;/P&gt;
&lt;P&gt;p_img_templ = ippiMalloc_8u_C1(32, 32,&amp;amp;StepByteTempl ); &lt;/P&gt;
&lt;P&gt;imgMatr = ippiMalloc_8u_C1(33, 33,&amp;amp;stepBytes ); &lt;/P&gt;
&lt;P&gt;memset((&lt;FONT color="#0000ff"&gt;void&lt;/FONT&gt;*)p_img_src,0x80,64*64);&lt;/P&gt;
&lt;P&gt;memset((&lt;FONT color="#0000ff"&gt;void&lt;/FONT&gt;*)p_img_templ,0x80,32*32);&lt;/P&gt;&lt;FONT color="#008000"&gt;
&lt;P&gt;// memset((void*)imgMatr,0,stepBytes*33);&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;IppStatus Corr_status = &lt;/P&gt;
&lt;P&gt;ippiCrossCorrValid_NormLevel_8u_C1RSfs(p_img_src,StepByteSrc, srcRoiSize, &lt;/P&gt;
&lt;P&gt;p_img_templ,StepByteTempl ,tplRoiSize, imgMatr, stepBytes, 0);&lt;/P&gt;
&lt;P&gt;ippiMaxIndx_8u_C1R(imgMatr, stepBytes, SizeMat, &amp;amp;max_val, &amp;amp;max_x, &amp;amp;max_y); &lt;/P&gt;
&lt;P&gt;ippiFree(imgMatr); &lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;return&lt;/FONT&gt; 0;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 03 Feb 2006 23:38:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Cross-correlation-does-not-work/m-p/947987#M18360</guid>
      <dc:creator>shyweissman</dc:creator>
      <dc:date>2006-02-03T23:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cross correlation does not work</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Cross-correlation-does-not-work/m-p/947988#M18361</link>
      <description>&lt;DIV&gt;Correlation coeffs are &lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Feb 2006 19:20:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Cross-correlation-does-not-work/m-p/947988#M18361</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2006-02-06T19:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cross correlation does not work</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Cross-correlation-does-not-work/m-p/947989#M18362</link>
      <description>&lt;DIV&gt;Correlation coeffs are less &lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Feb 2006 19:20:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Cross-correlation-does-not-work/m-p/947989#M18362</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2006-02-06T19:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cross correlation does not work</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Cross-correlation-does-not-work/m-p/947990#M18363</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Abs value of correlation coeffs are less than 1, so 8u results will be always 0 with a scale factor 0. Try scale factor = -8&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Feb 2006 19:21:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Cross-correlation-does-not-work/m-p/947990#M18363</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2006-02-06T19:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Cross correlation does not work</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Cross-correlation-does-not-work/m-p/947991#M18364</link>
      <description>&lt;P&gt;It does not work with -8 eigther.&lt;/P&gt;
&lt;P&gt;It always give matrix of zeros unless bytes of template and image contain more than one value ie 0 and 1.&lt;/P&gt;
&lt;P&gt;If all bytes of template or image are equall the matrix is all zero.&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Feb 2006 20:23:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Cross-correlation-does-not-work/m-p/947991#M18364</guid>
      <dc:creator>shyweissman</dc:creator>
      <dc:date>2006-02-06T20:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cross correlation does not work</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Cross-correlation-does-not-work/m-p/947992#M18365</link>
      <description>&lt;DIV&gt;Please look to cross correlation folmula in the manual.&lt;/DIV&gt;
&lt;DIV&gt;The image mean is subtracted from the image ie zero result will be for constant image or template&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Feb 2006 20:41:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Cross-correlation-does-not-work/m-p/947992#M18365</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2006-02-06T20:41:30Z</dc:date>
    </item>
  </channel>
</rss>

