Skip to content

CellposeTransform

CellposeTransform

Bases: OnlyInstMapTransform

available_keys property

available_keys: set[str]

Returns set of available keys.

__call__

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

Fix duplicate values and generate flows.

Parameters:

Name Type Description Default
inst ndarray

Instance labelled mask. Shape (H, W).

required

Returns:

Type Description
ndarray

np.ndarray: Horizontal and vertical flows of objects. Shape: (2, H, W). Dtype: float64.