Measure Distances Between Edges Using the Clamp Tool

NI Vision Assistant

Measure Distances Between Edges Using the Clamp Tool

Note  The Clamp function works only with 8-bit images.

Main Tab

  1. In the Step Name control, enter a descriptive name for the step.
  2. Verify that the Reposition Region of Interest option is enabled if you want to link the region of interest specified in this step to a previously defined coordinate system.

    Link the region of interest to a coordinate system if the position of the object under inspection changes from image to image, and you need to adjust the position of the region of interest to match the new location of the object.

Clamp Tab

  1. Select one of the ROI tools. Click and drag to select a path along which to search for edges and find the distance.
  2. Select the appropriate Process. In the Edge Strength Profile, Vision Assistant displays the average of the line profiles of all the lines used for edge detection.
  3. Adjust the Gap, Edge Strength, Smoothing, and Steepness parameters until the Process window indicates that the step has correctly detected the edges of the object you want to measure.
  4. Click OK to add this step to the script and close the Parameter window.
Tip  You can modify and move the ROI using context sensitivity. Move the mouse close to the control points of the ROI to adjust their positions. You also can select the entire ROI by clicking the middle of the ROI and dragging it.