cellmap_data.transforms.targets.distance#
Functions
|
Classes
|
Initialize the distance transform. |
|
Initialize the signed distance transform. |
- cellmap_data.transforms.targets.distance.transform(x: Tensor) Tensor [source]#
- Parameters:
x (Tensor)
- Return type:
Tensor
- class cellmap_data.transforms.targets.distance.DistanceTransform(use_cuda: bool = False)[source]#
Initialize the distance transform.
- Parameters:
use_cuda (bool, optional) – Use CUDA. Defaults to False.
- Raises:
NotImplementedError – CUDA is not supported yet.