Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

SLOW pattern matching in VB, FAST in VisionBuilder?????

I've built several vision aquisition and analysis apps with VB and CWIMAQ. Now, I'd like to do a pattern matching application, however, I can't seem to get the same functionality and speed with the VB component as I can using VisionBuilder! Attached is a grayscale image of a microtiterplate, and a "pattern" of a well or "hole". Using pattern matching in visionbuilder there are about 96 matches, which is perfect, dang near a match for every well. However, if I try to reverse engineer the VB "FeatureFind" example and use the attached picture and pattern, the "Correlation" takes a VERY long time (14 seconds for VB featurefind app, instant for VisionBuilder), and it doesn't even match!

Even though I can't use
visionbuilder in my final application, it works almost perfectly when I use the attached image and pattern while setting the minimum score to 50. I wish I could implement the same thing in VB, that is, if NatInst could tell me the CWIMAQ components function calls used to implement it :-0)

Any Ideas? Thanks
Download All
0 Kudos
Message 1 of 2
(3,276 Views)
I am not familiar with the VB commands you want to use since I use LabVIEW. However, I think you might be using the wrong function. It sounds like the example you tried to modify uses correlation, which is different from pattern matching. As you have seen, pattern matching is much faster and gives better results.

I would assume that the manual for CWIMAQ would give you the information you need.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 2
(3,276 Views)