Skip to main content

distance_transform_edt_with_spacing

Function distance_transform_edt_with_spacing 

Source
pub fn distance_transform_edt_with_spacing(
    mask: &BinaryMask,
    spacing_x: f32,
    spacing_y: f32,
) -> VisionResult<Image<f32, 1>>
Expand description

Computes the exact Euclidean distance transform with physical pixel spacing.

spacing_x and spacing_y are the positive finite distances between adjacent pixel centers along each axis. The output is expressed in those physical units.