<?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: probl. with understanding matching-functions in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/probl-with-understanding-matching-functions/m-p/985649#M21778</link>
    <description>hi!&lt;BR /&gt;&lt;BR /&gt;none of the links works&lt;BR /&gt;could you tell me, please, what whould be the correct output in this example in case it woul de corrected (the error with indexes, i mean)&lt;BR /&gt;should the output matrix be symmentic?&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Petr&lt;BR /&gt;</description>
    <pubDate>Tue, 14 Nov 2006 21:47:29 GMT</pubDate>
    <dc:creator>chobanu_p_m1</dc:creator>
    <dc:date>2006-11-14T21:47:29Z</dc:date>
    <item>
      <title>probl. with understanding matching-functions</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/probl-with-understanding-matching-functions/m-p/985647#M21776</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;i'm quite new to the IPP and tried to write a little&lt;BR /&gt;program for testing ippiMatchTemplate, but the output of&lt;BR /&gt;the program is not what i expected. I think it has&lt;BR /&gt;to be 3 by 3 ((W-w+1)*(H-h+1)), but it seems to be only 1 by 3 (look at code).&lt;BR /&gt;What is my mistake?&lt;BR /&gt;&lt;BR /&gt;Here's the code:&lt;BR /&gt;&lt;BR /&gt;int i, j;&lt;BR /&gt;&lt;BR /&gt;IppiSize srcROI;&lt;BR /&gt;srcROI.width = 5;&lt;BR /&gt;srcROI.height = 5;&lt;BR /&gt;&lt;BR /&gt;IppiSize tplROI;&lt;BR /&gt;tplROI.width = 3;&lt;BR /&gt;tplROI.height = 3;&lt;BR /&gt;&lt;BR /&gt;Ipp8u testpic[] = { &lt;BR /&gt;128, 0, 0, 0, 128,&lt;BR /&gt;0, 128, 0, 128, 0,&lt;BR /&gt;0, 0, 128, 0, 0,&lt;BR /&gt;0, 128, 0, 128, 0,&lt;BR /&gt;128, 0, 0, 0, 128 };&lt;BR /&gt;&lt;BR /&gt;Ipp8u testtpl[] = { &lt;BR /&gt;128, 0, 128,&lt;BR /&gt;0, 128, 0,&lt;BR /&gt;128, 0, 128};&lt;BR /&gt;&lt;BR /&gt;// i thought the result should be a 3 by 3 image with&lt;BR /&gt;// largest value in the mid&lt;BR /&gt;&lt;BR /&gt;int resStep;&lt;BR /&gt;int resSize = 5-3+1;&lt;BR /&gt;Ipp32f * res = ippiMalloc_32f_C1(resSize,resSize,&amp;amp;resStep);&lt;BR /&gt;&lt;BR /&gt;int bufSize;&lt;BR /&gt;int mpicstep, mtplstep;&lt;BR /&gt;Ipp8u * mtestpic, *mtesttpl;&lt;BR /&gt;&lt;BR /&gt;mtestpic = ippiMalloc_8u_C1(5,5,&amp;amp;mpicstep);&lt;BR /&gt;mtesttpl = ippiMalloc_8u_C1(3,3,&amp;amp;mtplstep);&lt;BR /&gt;&lt;BR /&gt;for(j=0; j5; j++)&lt;BR /&gt;for(i=0; i5; i++) mtestpic[i+j*mpicstep] = testpic[i+j*5];&lt;BR /&gt;&lt;BR /&gt;for(j=0; j3; j++)&lt;BR /&gt;for(i=0; i3; i++) mtesttpl[i+j*mtplstep] = testtpl[i+j*3];&lt;BR /&gt;&lt;BR /&gt;for(j=0; j3; j++)&lt;BR /&gt;for(i=0; i3; i++) res[i+j*resStep] = 3.3f;&lt;BR /&gt;&lt;BR /&gt;ippiMatchTemplateGetBufSize_CorrNormed(&lt;BR /&gt;srcROI, tplROI, ipp8u, &amp;amp;bufSize);&lt;BR /&gt;&lt;BR /&gt;Ipp8u* buffer = ippsMalloc_8u(bufSize);&lt;BR /&gt;&lt;BR /&gt;switch(&lt;BR /&gt;ippiMatchTemplate_CorrNormed_8u32f_C1R(&lt;BR /&gt;mtestpic, mpicstep, srcROI,&lt;BR /&gt;mtesttpl, mtplstep, tplROI,&lt;BR /&gt;res, resStep, buffer)&lt;BR /&gt;)&lt;BR /&gt;{&lt;BR /&gt;case ippStsNullPtrErr: printf("ippStsNullPtrErr
"); break;&lt;BR /&gt;case ippStsSizeErr: printf("ippStsSizeErr
"); break;&lt;BR /&gt;case ippStsStepErr: printf("ippStsStepErr
"); break;&lt;BR /&gt;case ippStsNotEvenStepErr: printf("ippStsNotEvenStepErr
"); break;&lt;BR /&gt;case ippStsNoErr: printf("OK
");&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;printf("
Match-Result:
");&lt;BR /&gt;for(j=0; j&lt;BR /&gt;{&lt;BR /&gt;for(i=0; i&lt;BR /&gt;{&lt;BR /&gt;printf("%1.3g ", res[i+j*resStep]);&lt;BR /&gt;}&lt;BR /&gt;printf("
");&lt;BR /&gt;}&lt;BR /&gt;ippiFree(mtestpic);&lt;BR /&gt;ippiFree(mtesttpl);&lt;BR /&gt;ippiFree(res);&lt;BR /&gt;ippsFree(buffer);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;J. Blaser</description>
      <pubDate>Mon, 11 Jul 2005 21:31:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/probl-with-understanding-matching-functions/m-p/985647#M21776</guid>
      <dc:creator>Deleted_U_Intel</dc:creator>
      <dc:date>2005-07-11T21:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: probl. with understanding matching-functions</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/probl-with-understanding-matching-functions/m-p/985648#M21777</link>
      <description>&lt;DIV&gt;Great, for your convenience, using MathTemplate function discussed here several times, so probably you can find it useful to read related topics:&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="http://softwareforums.intel.com/ids/board/message?board.id=IPP&amp;amp;message.id=319" target="_blank"&gt;http://softwareforums.intel.com/ids/board/message?board.id=IPP&amp;amp;message.id=319&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="http://softwareforums.intel.com/ids/board/message?board.id=IPP&amp;amp;message.id=808" target="_blank"&gt;http://softwareforums.intel.com/ids/board/message?board.id=IPP&amp;amp;message.id=808&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="http://softwareforums.intel.com/ids/board/message?board.id=IPP&amp;amp;message.id=1825" target="_blank"&gt;http://softwareforums.intel.com/ids/board/message?board.id=IPP&amp;amp;message.id=1825&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="http://softwareforums.intel.com/ids/board/message?board.id=IPP&amp;amp;message.id=1985" target="_blank"&gt;http://softwareforums.intel.com/ids/board/message?board.id=IPP&amp;amp;message.id=1985&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Regards,&lt;/DIV&gt;
&lt;DIV&gt; Vladimir&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Jul 2005 19:26:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/probl-with-understanding-matching-functions/m-p/985648#M21777</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2005-07-22T19:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: probl. with understanding matching-functions</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/probl-with-understanding-matching-functions/m-p/985649#M21778</link>
      <description>hi!&lt;BR /&gt;&lt;BR /&gt;none of the links works&lt;BR /&gt;could you tell me, please, what whould be the correct output in this example in case it woul de corrected (the error with indexes, i mean)&lt;BR /&gt;should the output matrix be symmentic?&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Petr&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Nov 2006 21:47:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/probl-with-understanding-matching-functions/m-p/985649#M21778</guid>
      <dc:creator>chobanu_p_m1</dc:creator>
      <dc:date>2006-11-14T21:47:29Z</dc:date>
    </item>
  </channel>
</rss>

