Skip to main content

distance_transform_edt_with_spacing

Function distance_transform_edt_with_spacing 

pub fn distance_transform_edt_with_spacing(
    mask: &BinaryMask,
    spacing_x: f32,
    spacing_y: f32,
) -> Result<Image<f32, 1>, VisionError>
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.