LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Pattern Matching.

When I use the pattern matching function of IMAQ (imaqMatchPattern()) the result of the matching isn't hte same even if I process the same image. For example, the rotation one time is set to an angle and the next time is incremented by pi/2 rad (this is because the pattern is near simmetric but I can discriminate 0.03 mm differences)... Can someone tell me what is happening or how can I do better (for example other functions or algorithms)?! (See photos for the object to inspect) Thanks...
G.M.
Download All
0 Kudos
Message 1 of 2
(2,826 Views)
Hi,

you have reason, the symmetry of your template is the problem.

Have you try with the shape matching (your template doesn't have gray information on his surface)?

If it isn't possible or you obtain the same issue with shape matching, I think that a possible workaround is to use a ROI in the region in which the pattern matching find your feature and then perform something like a line profile to calculate the right orientation of your template found.

Hope this help.

Best regards

AmbuA

0 Kudos
Message 2 of 2
(2,769 Views)