delta.utilities.getpoles¶
- delta.utilities.getpoles(seg: ndarray[Any, dtype[uint8]], labels: Optional[ndarray[Any, dtype[uint16]]] = None, scaling: Optional[Tuple[float, float]] = None) List[Tuple[ndarray[Any, dtype[int16]], ndarray[Any, dtype[int16]]]]¶
Get cell poles
- Parameters
- seg2D array of uint8
Cell segmentation mask.
- labels2D array of int, optional
Cell labels map. If None, label_seg() will be applied to seg The default is None.
- scalingtuple of floats, optional
Scaling to apply in both directions to rescale poles’ positions to original image size (if resizing was applied)
- Returns
- poleslist
List of poles per cell. Each cell in the list has exactly 2 poles.