Create a Distance Map

NI Vision Assistant

Create 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

Compute the convex hull of objects

Fill holes

Label objects

Reduce objects to their skeletons

Remove large objects

Remove objects touching the border of an image

Remove small objects

Segment an image

Separate objects