Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

pattern matching

Hello 

  I have a VI that performs correlation (using IMAQ correlate) of 2 images. Is this VI suitable for rotation and scale invariant object detection.

Also by using this VI when matching occurs the peaks in 3 D profile are not so high. Can it be modified

0 Kudos
Message 1 of 3
(4,645 Views)

Hello,

 

as far as I know, this function does not support rotation and scale invariant correlation. You would probably need to manually scale and rotate the template and perform correlation for each template. Why don't you use the implemented functions that already support this?

 

According to the documentation, the correlation score is between 0 and 255. The correlation is normalized to this values, so I don't think it's possible to use other datatype (see the documentation, the function only takes uint8 image).

 

You could try with OpenCV correlation and compare the results (the function can also take float32 image in addition to uint8):

 

https://decibel.ni.com/content/blogs/kl3m3n/2014/07/09/labview-vs-opencv-template-matching

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
Message 2 of 3
(4,632 Views)

Thank you clemen for the link

0 Kudos
Message 3 of 3
(4,624 Views)