Module distance_transform

Module distance_transform 

Source
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_transform for 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 of image. Distances are to the nearest foreground pixel, where a pixel is counted as foreground if it has non-zero value.