<?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 OpenCV MatchTemplate in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/OpenCV-MatchTemplate/m-p/883328#M10444</link>
    <description>&lt;P&gt;&lt;FONT face="Courier New"&gt;Hello &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;I am not sure if this is the right forum, but I would like to post the following question about cvMatchTemplate. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;1) I created an image (say BIGIMG) with square of different intensities on it. The image is grayscale and of type IplImage- &lt;BR /&gt;IPL_DEPTH_8U. BIGIMG is of size 2500X2500. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT face="Courier New"&gt;2) I select a region in BIG, called TEMPLATE of type IplImage- IPL_DEPTH_8U. &lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;3) I now create three different subimages from BIGIMG each of size (600X600), called FRAME1, FRAME2, FRAME3, so that TEMPLATE is a part of each of these three images. They are also of type IplImage- IPL_DEPTH_8U. &lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;4) convert TEMPLATE, FRAME1, FRAME2 and FRAME3 into CvMat using cvConvert. Call the resultant matrices: mTEMPLATE, mFRAME1, mFRAME2, mFRAME3&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;5) Do template match (option = CV_TM_SQDIFF): mTEMPLATE on mFRAME1; &lt;BR /&gt;mTEMPLATE on mFRAME2; mTEMPLATE on mFRAME3. I get the right location for &lt;BR /&gt;the MinLocation in all three cases. I would expect the minimum value to be zero in all three cases. But I see that they are non-zero and not equal to each other. &lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;Canyou please explain what is going on in? &lt;BR /&gt;&lt;/FONT&gt;
&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;-prarav- &lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 May 2008 21:37:26 GMT</pubDate>
    <dc:creator>prarav</dc:creator>
    <dc:date>2008-05-23T21:37:26Z</dc:date>
    <item>
      <title>OpenCV MatchTemplate</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/OpenCV-MatchTemplate/m-p/883328#M10444</link>
      <description>&lt;P&gt;&lt;FONT face="Courier New"&gt;Hello &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;I am not sure if this is the right forum, but I would like to post the following question about cvMatchTemplate. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;1) I created an image (say BIGIMG) with square of different intensities on it. The image is grayscale and of type IplImage- &lt;BR /&gt;IPL_DEPTH_8U. BIGIMG is of size 2500X2500. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT face="Courier New"&gt;2) I select a region in BIG, called TEMPLATE of type IplImage- IPL_DEPTH_8U. &lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;3) I now create three different subimages from BIGIMG each of size (600X600), called FRAME1, FRAME2, FRAME3, so that TEMPLATE is a part of each of these three images. They are also of type IplImage- IPL_DEPTH_8U. &lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;4) convert TEMPLATE, FRAME1, FRAME2 and FRAME3 into CvMat using cvConvert. Call the resultant matrices: mTEMPLATE, mFRAME1, mFRAME2, mFRAME3&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;5) Do template match (option = CV_TM_SQDIFF): mTEMPLATE on mFRAME1; &lt;BR /&gt;mTEMPLATE on mFRAME2; mTEMPLATE on mFRAME3. I get the right location for &lt;BR /&gt;the MinLocation in all three cases. I would expect the minimum value to be zero in all three cases. But I see that they are non-zero and not equal to each other. &lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;Canyou please explain what is going on in? &lt;BR /&gt;&lt;/FONT&gt;
&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;-prarav- &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2008 21:37:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/OpenCV-MatchTemplate/m-p/883328#M10444</guid>
      <dc:creator>prarav</dc:creator>
      <dc:date>2008-05-23T21:37:26Z</dc:date>
    </item>
  </channel>
</rss>

