pub fn distance_transform_edt_into(
mask: &BinaryMask,
output: &mut [f32],
workspace: &mut DistanceTransformWorkspace,
) -> VisionResult<()>Expand description
Computes the exact unit-spacing Euclidean distance transform into a reusable slice.
output must contain exactly mask.width() * mask.height() elements. Scratch
allocations are owned by workspace; the caller retains ownership of the
output allocation.