Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

advanced pattern matching

Dear Forum
I'm using the pattern matching vi's (LV 7) to find a reference point (shift only) on several images. I have a rather complicated vi to train and find the right settings (based on one of the labview example). Basicaly it works but I'm not quite satisfied with the results, sometimes it misses a match while it seems obvious...
So here are a few questions I'm hopping someone could give me a help with:
- when defining the template I'm using a poligonal ROI, however I have the impression the template is in fact defined by the ROI bounding rectangle, is it true?
- I'm looking an image which is 640x480 pixels, my ROI is about 100x60 pixels. From the labview examples I have the feeling that the general vi's (learn pattern 2, find pattern 2, etc) are optimized for smaller ROI sizes, So I'm trying now to use the advanced pattern matching vi's. from the literature I identified two parameters which could be of interest: Initial match list and sample size. I have however no idea where to start; a hint on what are the default parameters (such used is the non avanced vi's) would be usefull
- I've tried several filters mostly gradiant for edge enhancement, smoothing or Nth order for getting rid of noise and math look-up for contrasting the image, maybe there is a better solution?
 
I have a few sample image I'm unfortunatly not allowed to show on a forum, should a LV Guru be interested by my problems I would be glad to e-mail
 
Best wishes
 
PiF
0 Kudos
Message 1 of 3
(3,486 Views)

Hi PiF,

Yes it's true, the pattern match algorithm can only search for an object inside of a non-rotated rectangular ROI. If an ROI does not meet this criteria, the bounding rectangle will be used. This means that the search area is defined by the min and maximum values for x and y of your ROI.

I found a KB with an example code, which may help you out:

http://digital.ni.com/public.nsf/websearch/34FB31D01B75E1E086256D1A00332963?OpenDocument

Regarding filters, you can find a lot of info's in the IMAQ Vision concepts manual

http://digital.ni.com/manuals.nsf/websearch/34548BDDD48DF68B86256F81005B94F8

I hope this helps!

Regards,

Evrem

0 Kudos
Message 2 of 3
(3,439 Views)

Dear Evrem

Thank you for your replies. At that time I've learned to live with a rectangular ROI... Thank you for the link, I will check the example VI (I however believe this advanced strategy (agressive, balanced,...) is limited to searches with rotations!)

Best regards

 

PiF

0 Kudos
Message 3 of 3
(3,399 Views)