Expand description
Functions for computing distance transforms - the distance of each pixel in an image from the nearest pixel of interest.
Enums§
- Norm
- How to measure distance between coordinates.
See
distance_transformfor examples.
Functions§
- distance_
transform - Returns an image showing the distance of each pixel from a foreground pixel in the original image.
- distance_
transform_ mut - An in-place version of
distance_transform(). - euclidean_
squared_ distance_ transform - 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.