Find the Center of Two Points

NI Vision Assistant

Find the Center of 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 Mid Point.
  3. Select two points on the image by clicking them.
  4. Click Measure.
  5. Click OK to add this step to the script.
Note  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.
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.
  • The center point is available for new measurements when you close the caliper parameter window and re-open it.
  • To save the data, click the Send Data to Excel button or the Save Results button.

Related Topics

Find the angle made by three or four points

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 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