Straight Edge (Rake)

NI Vision Assistant

Straight Edge (Rake)

Finds points along the edge of an object and finds a line describing the edge.

Locates the intersection points between a set of search lines within a rectangular search area and the edge of an object. Edges are determined based on their contrast and slope. The function returns the line that best fits the edges found.

Main Tab

The following controls are available on the Main tab.

  • Step Name—Name to give the step.
  • Reposition Region of Interest—When enabled, the step dynamically repositions the region of interest based on a coordinate system you built in a previous step.
  • Reference Coordinate System—Coordinate system to which you want to link the region of interest.

Settings Tab

The following controls are available on the Settings tab.

  • Auto Setup—When enabled, the step automatically locates the strongest edge in the region of interest (ROI) and returns the parameters it used to find the edge.
    Note  Vision Assistant uses the Auto Setup parameters to compute the optimal parameters the first time you configure the step. After the optimal parameters are computed, they are saved in the script, and the Auto Setup parameters are disabled. Edits to the step will edit the optimal parameters.
  • Search Lines
    • Direction—Direction in which you want the search lines to look for a straight edge within the ROI.
    • Gap—Number of pixels between search lines in the ROI.
    • Edge Strength—Minimum difference in the intensity values between the edge and its surroundings.
    • Smoothing—Number of pixels averaged to find the contrast at either side of the edge.
    • Steepness—Maximum distance in which the edge strength must occur. Steepness characterizes the slope of the edge. Use a higher Steepness value to detect edges in images whose pixel intensities gradually transition from the background to the edge.
  • Edge Strength Profile—Edge strength along the search line located in the middle of the ROI.

Results Tab

Displays the results for edges detected in the image.

  • Current Angle—Angle from the horizontal axis to the located edge.
  • Current Deviation—Maximum distance found between the points of the edge and the fitted line.
  • Current Short Distance—Indicates the shorter of the following distances:
    • The distance between the start point of the first search line and the intersection of the fitted line and the first search line.
    • The distance between the start point of the last search line and the intersection of the fitted line and the last search line.
  • Current Long Distance—Indicates the longer of the following distances:
    • The distance between the start point of the first search line and the intersection of the fitted line and the first search line.
    • The distance between the start point of the last search line and the intersection of the fitted line and the last search line.

Displays the results of the edge detection.

Related Topics

Detecting circular edges in grayscale images

Detecting straight edges in grayscale images

Edge Detector (Machine Vision»Edge Detector)

Circular Edge (Spoke) (Machine Vision»Circular Edge (Spoke))

Finding edges in grayscale images