[][src]Module imageproc::distance_transform

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 the distance_transform documentation 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

Updates an image in place so that each pixel contains its distance from a foreground pixel in the original image.

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.