Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how do I find the x y coordinates of rois that were found using find roi functi

I am using the vision for vb and am trying to set up a way of calibrating a round facedial on an automotive gauge.I am trying to correct the alignment of the facedial by finding the rivets that we use to attach the dial to the mechanism (pattern matching)and using the location of these rivets to align my images or test units.Due to the gauge being held from terminal behind gauge I need to correct any rotation of face that might occur during construction of gauge mechanism
0 Kudos
Message 1 of 3
(3,115 Views)
Hello,

I'm guessing you are using the IMAQVision.MatchPattern method to do your pattern matching. If so, calling CWIMAQPatternMatchReport.Item(1).Position function will return you the coordinates for the first matched pattern.
I hope this helps. Let me know if this doesn't answer your question with more detailed infomation about the functions you are using.

Yusuf C.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 3
(3,115 Views)
Thanks I did a little digging on my own and found this is was I needed it works just fine!I am able to get all the roi's positions using this
0 Kudos
Message 3 of 3
(3,115 Views)