Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Draw line at specific angular circumference location

Solved!
Go to solution

Folks -

 

I have a bmp image as shown in the attached and a known angle.  I have to place a mark / arrow on the circumference of the circle at the specific known  angle.

 

measure-angle-from-circle-center.PNG

 

Is there any automated way to mark the angular location along the circumference knowing the angle using the Vision VIs?

 

(The measure tool in Vision Assistant provides a way to actually measure an angle between two lines (I think this is what it does from my playing with it).  Is there some offshoot of this that can be used to help here?)

 

Thanks,

 

Don

0 Kudos
Message 1 of 2
(3,136 Views)
Solution
Accepted by topic author DonRoth

Folks - this turns out to be a very reasonable problem to solve and I had the time today to spend on it.

 

Here are the basic steps:

 

1) Use IMAQ find Circular Edge 2 to obtain describtion of circle including radius and center (utilize ID or OD edge - your preference as long as edge strength is good enough in either direction)

2) Calculate circumference point coordinates associated with angle of interest using attached VI (I had to adjust for orientation which is why I add 180 deg to the input angle)

3) Use IMAQ Overlay Line with circumference point coordinates and center coordinates

4) Feed output of IMAQ Overlay line to your Vision Image

 

pointer-mark 2.PNG

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