10-29-2007 01:16 PM
10-30-2007 01:41 AM
Hi,
I try to do something like that. I just have mask the region with the mask function
(My pattern is an annular in an image).
The pattern matching is based on the correlation. The correlation mathematical formula
uses the intensity level. So, if the intensity level is to 0, the current score
will be 0. (<-Never mask anything with a white circle)
So if you just want to perform a pattern matching with a non rectangular
template, just mask it...
Simply you could try it with the Vision Assistant.
10-30-2007 10:21 PM
11-03-2008 04:59 AM
Hi there,
I'm interested by this problematic!
The idea of black masking regions on a template is appealing.
However I don't think it's working:
The algorythm used by the pattern matching are based on "normalized cross correlation"
The mathematic formula can be found in a NI manual.
What I understand is that the intensity value of a pixel in the template is "normalized" by the average pixel value of the template;
Therefore black pixels do have an influence in the cross correlation procedure (no such thing as a zero multiplication!)
Can someone comment on this?
Is there any thing new on the subject of non rectangular templates?
Best regards
11-04-2008 02:49 AM
One more thaught on the subject:
Reading the IMAQ VIsion Concepts manual chapter 12 pattern matching
The pattern matching algorythm resample the template image in order to increase the speed of the process.
For this it use a "non uniform" sampling or "inteligent" sampling, The idea is to extract salient pattern of pixels.
Going back to the idea of black masking areas in a template image:
I'believe the border of the mask will be regonized as "a salient pattern of pixels".
Once again, I don't think masking portions of a template is a valid strategy!
anyone?
have a nice day
11-04-2008 12:29 PM
11-04-2008 01:56 PM
11-05-2008 01:27 AM
Dear Vince
I'm using Ni vision development module 8.5.
I was trying to reduce the influence of a inconstant shadow in a pattern matching application.
Having read the beginning of this thread, I have tried to black mask the problematic portion of the image template.
This operation resulted in worst results.
I had the impression that in some case of ill placement of the found pattern the border of the masked regions influenced the result as it is a well contrasted zone.
Reading the manual I figure out it is probably normal due to this "inteligent sampling" of the template image.
This is my experiment on the subject.
have a nice day
11-05-2008 01:30 AM - edited 11-05-2008 01:32 AM
To Ben:
cool!
I will upgrade to 8.6 the next time I break my leg
Thank you and have a nice day
11-21-2008 09:02 AM
I don't think I explained the problem clearly enough.
I have a item that I want to look for that is round in shape (e.g. a ball), but on the ball is a large logo, but it differs for different companies. There is a conistent check type pattern that I want to be able to match on the ball, and the ball outline itself, but I want to mask out the logo area. If I try and undertake a pattern match with the logo area included, then I will have to lower the score to too low a level which will make the system useless.
The logo area will always be in the same spot, so is it possible to have a pattern match with the logo area masked out. I need the logo area to not be part of the score of the pattern match.
Hopefully that defines the problem more clearly.
Just FYI, I can't change other things, I don't know where the ball is, but I do know the orientation.