sdt#

sdt(image)[source]#

Signed distance transform where positive values are into the pore space and negative values are into the grain space.

Return type:

ndarray

Parameters:

image – An np.ndarray containing the binary image. Assumes img = 1 for pore space, 0 for grain space.

Returns:

Signed distance transform of the entire image

Return type:

numpy.ndarray