Skip to content

SmoothDistTransform

SmoothDistTransform

Bases: OnlyInstMapTransform

available_keys property

available_keys: set[str]

Returns set of available keys.

__call__

__call__(inst: ndarray, **kwargs) -> np.ndarray

Generate smooth distance transforms.

Parameters inst (np.ndarray): Instance labelled mask. Shape (H, W).

Returns:

Type Description
ndarray

np.ndarray: Smooth distance transforms of objects. Shape: (H, W). Dtype: float64.