delta.utilities.two_poles

delta.utilities.two_poles(poles: List[ndarray[Any, dtype[int16]]]) Tuple[ndarray[Any, dtype[int16]], ndarray[Any, dtype[int16]]]

Sometimes the skeleton produces more than 2 poles. Thus function selects only 2 poles in the skeleton.

Parameters
poleslist

Coordinates for the mother/daughter poles for a single cell Dimension is (#_of_poles, [y_coordiante, x_coordinate])

Returns
polestuple of 2 1D arrays

Two poles, each being a 2-element array of y-x coordinates.