Watershed Segmentation (Grayscale»Watershed Segmentation)

NI Vision Assistant

Watershed Segmentation (Grayscale»Watershed Segmentation)

Performs segmentation on images using the watershed transform. Refer to the NI Vision Concepts Manual for information about the watershed transform.

  • Number of Zones—Displays the total number of zones detected in the image.
  • Connectivity 4/8—Defines which of the surrounding pixels for any given pixel constitute its neighborhood.
    • Connectivity-8—All adjacent pixels are considered neighbors.
    • Connectivity-4—Only pixels adjacent in the horizontal and vertical directions are considered neighbors.
  • Display—Controls how Vision Assistant displays the image after watershed segmentation.
    • Labeled Binary Output—Displays the labeled binary image returned by the watershed algorithm.
    • Image Source with Separation Overlay—Overlays the watershed lines in red on top of the input image. This display is helpful to see if the zones found are correct. This is for viewing purposes only and does not change the output of the step.
    Note  The Display options control how the results are displayed in the Processing window when the Setup window is open. However, the output image of the step is always a labeled binary image.

Related Topics

Segmenting an image