delta.utilities.extrema_poles

delta.utilities.extrema_poles(cellmask: numpy.ndarray[Any, numpy.dtype[numpy.uint8]], scaling: Optional[Tuple[float, float]] = None) Tuple[numpy.ndarray[Any, numpy.dtype[numpy.uint16]], numpy.ndarray[Any, numpy.dtype[numpy.uint16]]]

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.