delta.utilities.extrema_poles¶
- delta.utilities.extrema_poles(cellmask: ndarray[Any, dtype[uint8]], scaling: Optional[Tuple[float, float]] = None) Tuple[ndarray[Any, dtype[int16]], ndarray[Any, dtype[int16]]]¶
A slower and more rudimentary version of poles finding but that is guaranteed to find exactly 2 poles
- Parameters
- cellmask2D array of int
Segmentation mask of a single cell.
- Returns
- polestuple of 2 1D arrays
Two poles, each being a 2-element array of y-x coordinates.