Expand description
Functions for computing distance transforms - the distance of each pixel in an image from the nearest pixel of interest.
Enums§
- How to measure distance between coordinates. See the
distance_transform
documentation for examples.
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 ofimage
. Distances are to the nearest foreground pixel, where a pixel is counted as foreground if it has non-zero value.