delta.utilities.getpoles¶
- delta.utilities.getpoles(seg: numpy.ndarray[Any, numpy.dtype[numpy.uint8]], labels: Optional[numpy.ndarray[Any, numpy.dtype[numpy.uint16]]] = None, scaling: Optional[Tuple[float, float]] = None) List[Tuple[numpy.ndarray[Any, numpy.dtype[numpy.uint16]], numpy.ndarray[Any, numpy.dtype[numpy.uint16]]]]¶
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.