<?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: Instability in pattern matching in Machine Vision</title>
    <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2904340#M42663</link>
    <description>&lt;P&gt;Have you tried contacting your local rep?&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jun 2014 09:25:54 GMT</pubDate>
    <dc:creator>muks</dc:creator>
    <dc:date>2014-06-30T09:25:54Z</dc:date>
    <item>
      <title>Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2876274#M42326</link>
      <description>&lt;P&gt;Hi, i need some advice on this. I use Imaq pattern matching to check the components of a pcb board. Presence and orientation of components. I am close enough to complete the program and i'm testing it on my table with natural, but not direct, light.&lt;BR /&gt;&lt;BR /&gt;By now i have obtained good, but not stable, results. From time to time i get a collapse on the matching score, even to zero. Without moving the board under my camera. So i think that the problem is the natural light and his minimum changing during the testing. Reading the documentation from NI i found that the pattern matching should be resistant to light changing in the ambient, so i dont really understand the problem. &lt;BR /&gt;Should i not to trust the pattern matching and using it only on stable lighting condition? Or maybe there are some problems in the code?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2014 08:51:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2876274#M42326</guid>
      <dc:creator>FM82</dc:creator>
      <dc:date>2014-06-06T08:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2876338#M42327</link>
      <description>&lt;P&gt;Please make the lighitng stable. You will not get repeatable results in pattern matching and for that matter you will find difficulty in all image processing functions&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2014 10:08:20 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2876338#M42327</guid>
      <dc:creator>muks</dc:creator>
      <dc:date>2014-06-06T10:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2876472#M42330</link>
      <description>&lt;P&gt;Thank you very much, i already had a strongly suspect that the problem is the non stable lighting conditions. Evidently even when the human eye cannot catch the difference, the pattern matching function can.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;muks ha scritto:&lt;BR /&gt;
&lt;P&gt;Please make the lighitng stable. You will not get repeatable results in pattern matching and for that matter you will find difficulty in all image processing functions&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2014 11:59:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2876472#M42330</guid>
      <dc:creator>FM82</dc:creator>
      <dc:date>2014-06-06T11:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2876596#M42331</link>
      <description>&lt;P&gt;&amp;nbsp;One technique that you can try is use a very high intensity lighting and operate the camera in mimum aperture which will make the ambient lighting have no affect in your system&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2014 12:55:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2876596#M42331</guid>
      <dc:creator>muks</dc:creator>
      <dc:date>2014-06-06T12:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2876640#M42332</link>
      <description>&lt;P&gt;Good idea, thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2014 13:19:22 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2876640#M42332</guid>
      <dc:creator>FM82</dc:creator>
      <dc:date>2014-06-06T13:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2877152#M42335</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;lighting is very important, but based on what you said, I am not sure that your current matching fails because of the lighting variation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Normalized cross-correlation is invariant to uniform lighting changes, but not to non-uniform, such as local reflections for example (it is also not invariant to scale changes and occlusions) . You've said that you cannot visually see the difference between the positive and the false/no match, so I &amp;nbsp;fail to see how the pattern match fails. I have found the Vision Pattern Matching really stable and roboust in various conditions. Are you sure there is no error in your code?&lt;/P&gt;
&lt;P&gt;What seems strange to me is that you have the PCB board positioned on the same spot and the matching fails at one time and gives a positive match at the other... This should not happen using the natural lighting, since I don't belive that the intensity variation is non-uniform to such a degree that it would interfere with the correlation score calculation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway (regardless of the above), try to use constant lighting when finising your application, so you don't need to re-learn the template descriptors. This will also give more accurate results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.s.: You can post the part of the code that does the matching here, and we can take a look at it. Disregard this, if the lighting is really the issue (I would be suprised that it is in your case!)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.p.s: The type and the direction of the lighting varies from apllication to application. You need to select the most suitable for your application. I will not go into details, but there are a lot of guidlines online. This one is pretty good:A Practical Guide to Machine Vision Lighting - Graftek Imaging.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;K&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2014 18:19:08 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2877152#M42335</guid>
      <dc:creator>Klemen</dc:creator>
      <dc:date>2014-06-06T18:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2877540#M42339</link>
      <description>&lt;P&gt;I feel this is definetly because of irregular lighting and i personally feel pattern matching is not "very" stable too.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jun 2014 07:15:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2877540#M42339</guid>
      <dc:creator>muks</dc:creator>
      <dc:date>2014-06-07T07:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2877564#M42340</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it seems that you hava a valid (and probably the correct) point...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What seems strange to me is this part from the first post:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"From time to time i get a collapse on the matching score, even to zero. Without moving the board under my camera. So i think that the problem is the natural light and his minimum changing during the testing."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The board is not being moved and there is minimal change in light. I have seen pattern matching performing correctly with rotation, shift and quite moderate intensity variation (it failed when trying to match reflective material subjected to motion due to reflectivity shifts). But I am really speculating here, since I do not know what is the object and what is the lighting in this case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some images of matches/non-matches should be more instructive in order to test the behaviour of the application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if there are problems with the intensity based matching, one could try geometric based matching.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;K&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jun 2014 10:08:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2877564#M42340</guid>
      <dc:creator>Klemen</dc:creator>
      <dc:date>2014-06-07T10:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2877574#M42341</link>
      <description>&lt;HR /&gt;
&lt;P&gt;Some images of matches/non-matches should be more instructive in order to test the behaviour of the application.&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;Very valid&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jun 2014 10:30:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2877574#M42341</guid>
      <dc:creator>muks</dc:creator>
      <dc:date>2014-06-07T10:30:39Z</dc:date>
    </item>
    <item>
      <title>Rif.: Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878360#M42356</link>
      <description>&lt;P&gt;I think i found the problem, or maybe the bigger one. First of all i have some fiducials on the board and i must find it to recalculate the relative position between the searching area and the board. The first time i had tryed to adapt the searching area and the "template matching function" to the rotated board by using the "rotation invariant" searching. Now i have modified this and i first rotate the image and make it perpendicular again and then use the pattern matching function but in his "shift invariant" form. I hope i explained what i mean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you think this can be the problem?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2014 08:12:47 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878360#M42356</guid>
      <dc:creator>FM82</dc:creator>
      <dc:date>2014-06-09T08:12:47Z</dc:date>
    </item>
    <item>
      <title>Rif.: Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878364#M42358</link>
      <description>&lt;P&gt;Can you post a few images?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2014 08:22:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878364#M42358</guid>
      <dc:creator>muks</dc:creator>
      <dc:date>2014-06-09T08:22:58Z</dc:date>
    </item>
    <item>
      <title>Rif.: Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878372#M42359</link>
      <description>&lt;P&gt;I'm trying to get a fail so i can post the "good" and the "bad". &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://ni.lithium.com/i/smilies/16x16_smiley-tongue.gif" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2014 08:30:42 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878372#M42359</guid>
      <dc:creator>FM82</dc:creator>
      <dc:date>2014-06-09T08:30:42Z</dc:date>
    </item>
    <item>
      <title>Rif.: Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878382#M42360</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/288121"&gt;@FM82&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I'm trying to get a fail so i can post the "good" and the "bad". &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://ni.lithium.com/i/smilies/16x16_smiley-tongue.gif" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Also post the fiducials as the camera sees it.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2014 08:35:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878382#M42360</guid>
      <dc:creator>muks</dc:creator>
      <dc:date>2014-06-09T08:35:05Z</dc:date>
    </item>
    <item>
      <title>Rif.: Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878400#M42361</link>
      <description>&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class="hps"&gt;Here it is. i'm sorry for the patch but i need to hide the client's name. Here you can see the fiducials and the areas of search with the relative components. This is a good image. After the modification that i explained before i had done 100 runs but i could not get a single "fail", instead i have obtained a pretty costant match score.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class="hps"&gt;&lt;IMG src="https://ip1.i.lithium.com/b4a6ed911cce6b6b4bdc5b8de3f2bbd538c8864c/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31343437363469424345334538313643453834383430312f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="Board.jpg" title="Board.jpg" align="middle" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2014 09:02:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878400#M42361</guid>
      <dc:creator>FM82</dc:creator>
      <dc:date>2014-06-09T09:02:14Z</dc:date>
    </item>
    <item>
      <title>Rif.: Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878426#M42363</link>
      <description>&lt;P&gt;and what is your reference in this image?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2014 10:03:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878426#M42363</guid>
      <dc:creator>muks</dc:creator>
      <dc:date>2014-06-09T10:03:49Z</dc:date>
    </item>
    <item>
      <title>Rif.: Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878450#M42365</link>
      <description>&lt;P&gt;Sorry i did'nt get it, do you mean the fiducials?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2014 10:27:42 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878450#M42365</guid>
      <dc:creator>FM82</dc:creator>
      <dc:date>2014-06-09T10:27:42Z</dc:date>
    </item>
    <item>
      <title>Rif.: Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878460#M42366</link>
      <description>&lt;P&gt;yes&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2014 10:41:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878460#M42366</guid>
      <dc:creator>muks</dc:creator>
      <dc:date>2014-06-09T10:41:34Z</dc:date>
    </item>
    <item>
      <title>Rif.: Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878490#M42367</link>
      <description>&lt;P&gt;The three&amp;nbsp; points that you can find in the upper left corner, in the lower left and in the upper right.&lt;/P&gt;
&lt;P&gt;This one:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/1d8b8a0593396394ebce2759664b1502c73de031/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31343437363869313044433035303539433041344245342f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="fid.jpg" title="fid.jpg" align="middle" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2014 11:36:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878490#M42367</guid>
      <dc:creator>FM82</dc:creator>
      <dc:date>2014-06-09T11:36:58Z</dc:date>
    </item>
    <item>
      <title>Rif.: Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878580#M42368</link>
      <description>&lt;P&gt;I honestly feel is the image is good. I feel if you are taking the fiduals reference corerctly the application should work correctly and ofcource with uniform lighting.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2014 12:49:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878580#M42368</guid>
      <dc:creator>muks</dc:creator>
      <dc:date>2014-06-09T12:49:34Z</dc:date>
    </item>
    <item>
      <title>Rif.: Instability in pattern matching</title>
      <link>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878602#M42369</link>
      <description>&lt;P&gt;I already checked the fiducials and i can exclude that they are the problem. Honestly last week there had been some cloudy days with the sun that come and gone from time to time. So i think that the principal problem is my inexperience with the pattern matching function and the working mechanism behind the result, so i expect something that i couldn't really achieve due the terrible conditions that i experienced last week.&lt;BR /&gt;Today is a really sunny day and it seem that the code is working pretty well. I work really close to a window so i take all the changing in lighting. I know that this are terrible conditions to work with, when talking about image analysis, but i thought that if i can make a software that can work under this circumstances when i will put all the stuff inside a closed dome i will be sure that everything will work very well.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2014 13:06:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Machine-Vision/Instability-in-pattern-matching/m-p/2878602#M42369</guid>
      <dc:creator>FM82</dc:creator>
      <dc:date>2014-06-09T13:06:19Z</dc:date>
    </item>
  </channel>
</rss>

