Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Returning the distance from the centre of a found circle and the edge for each 'spoke' in the Find Circular Edge function

Solved!
Go to solution

Hi all,

I have numerous applications where I'd like to be able to determine the distance between the found centre of a "circle" and each of the edge points for each of the spokes. In other words, for each of the "spokes" below, return the distance between the centre of the circle and the yellow dot.

 

I haven't been able to find a function yet that can do this for me, and I'm also surprised that the find circular edge function doesn't return the values either, but it seems to me that a long way of doing it would be to, via a for loop:

  • create a number of computed line ROIs that sweep around the circle, where one end is tied to the centre of the circle and the other end extends beyond the radius of the found circle
  • then perform an edge detect for each of those ROIs based on the same settings used in the circle find
  • return the found values in an array.

Before I do this however I wondered if there was an actual function for doing this, or a better method?

Thanks

Andrew

 

 

Capture.PNG

0 Kudos
Message 1 of 3
(2,853 Views)
Solution
Accepted by AndyF
You can use IMAQ Spoke to get the edge points on the circle: https://zone.ni.com/reference/en-XX/help/370281AA-01/imaqvision/imaq_spoke_4/
-Once you have edge points and circle center it should be distance between two points.
Thanks
uday
Message 2 of 3
(2,815 Views)

Thanks, I managed to miss that one somehow!

0 Kudos
Message 3 of 3
(2,808 Views)