Find the Angle Made by Three or Four Points

NI Vision Assistant

Find the Angle Made by Three or Four 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 Angle Defined by 3 Points or Angle Defined by 4 Points.
  3. Select three or four points on the image by clicking them. If you select three points, the second point is used as the common vertex, and the angle is measured between (1,2) and (2,3). If you select four points, the angle is measured between (1,2) and (3,4).
  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.

Find the angle made by two 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