Find the Angle Made by Two Points

NI Vision Assistant

Find the Angle Made by Two Points

  1. Click Machine Vision»Caliper or select Caliper from the Machine Vision tab in the Processing Functions palette. Vision Assistant displays and numerically labels all points that you have located with the Edge Detector, Straight Edge (Rake), Circular Edge (Spoke), Centroid, Pattern Matching, Color Pattern Matching, Color Location, Shape Matching, Particle Analysis, or Circle Detection functions.
  2. Select either Angle from Horizontal or Angle from Vertical, depending on the type of angle you want.
  3. Select two points on the image by clicking them.
  4. Click Measure.
  5. Click OK to add this step to the script.
Notes  
  • You must have already located the position of objects in the image using one or more of the following functions: Edge Detector, Straight Edge (Rake), Circular Edge (Spoke), Centroid, Pattern Matching, Color Pattern Matching, Color Location, Shape Matching, Particle Analysis, or Circle Detection.
  • The angle is measured in degrees, counterclockwise.
Tips  
  • You also can select points on the image by double-clicking them in the Points list. When a point is selected, Vision Assistant places a check mark to the left of the item.
  • To save the data, click the Send Data to Excel button or the Save Results button.

Related Topics

Finding the angle made by three or four points

Find the area enclosed by three or more points

Find the center of mass using three or more points

Find the center of two points

Find the circular fit using three or more points

Find the distance between two points

Find the intersection of two lines

Find the perpendicular projection of a point on a line