mango.image.distance_transform_edt

mango.image.distance_transform_edt(input, val=0)

Returns Euclidean distance transform image. Calculates for non-obstacle voxels (i.e. voxels with value val) the distance to the nearest obstacle voxel.

Parameters:
  • dds (mango.Dds) – The mango.Dds from which distances are created (must have input.mtype == mango.mtype('segmented').
  • val (int) – Value for non-obstacle input voxels, for all non-obstacle voxels, calculates distance to nearest obstacle voxel.
Return type:

mango.Dds

Returns:

Euclidean distance image output.mtype == mango.mtype('distance_map').,

Previous topic

mango.image.convex_hull_3d

Next topic

mango.image.max_covering_radius

This Page