[SciPy-User] indices in scipy.ndimage.morphology.distance_transform_edt

Zachary Pincus zachary.pincus@yale....
Thu Jun 6 15:37:00 CDT 2013


> Hello guys,
> 
> When i use distance_transform_edt, it returned a indices matrix.
> 
> What this matrix means ?

According to the docstring:
> In addition to the distance transform, the feature transform can
> be calculated. In this case the index of the closest background
> element is returned along the first axis of the result.

The examples in the docstring might help illustrate this a bit. Basically, the distance transform gives the distance to the closest background element. The indices specify *which* background element it was that was closest...

Zach


More information about the SciPy-User mailing list