Expand description

Functions for computing distance transforms - the distance of each pixel in an image from the nearest pixel of interest.

Enums§

Functions§

  • Returns an image showing the distance of each pixel from a foreground pixel in the original image.
  • Updates an image in place so that each pixel contains its distance from a foreground pixel in the original image.
  • Computes the square of the L2 (Euclidean) distance transform of image. Distances are to the nearest foreground pixel, where a pixel is counted as foreground if it has non-zero value.