Creating a distance map

NI Vision Assistant

Creating a distance map

  1. Click Binary»Adv. Morphology or click Adv. Morphology in the Binary tab of the Processing Functions palette.
  2. Select Distance or Danielsson.
  3. Click OK to add this step to the script.
Note  This function assigns, to each pixel, a grayscale value equal to the shortest distance to the border of the object. The border might be to a hole within the object. Danielsson uses a more accurate algorithm than Distance.

Related Topics

Adv. Morphology (Binary»Adv. Morphology)

Computing the convex hull of objects

Filling holes

Labeling objects

Reducing objects to their skeletons

Removing large objects

Removing objects touching the border of an image

Removing small objects

Segmenting an image

Separating objects