delta.utilities.extract_poles

delta.utilities.extract_poles(end_img: ndarray[Any, dtype[bool]], labels: ndarray[Any, dtype[uint16]]) List[List[ndarray[Any, dtype[int16]]]]

Extract poles per cell from ends image

Parameters
end_img2D array of bool

‘Mask’ of the poles in the image.

labels2D array of int

Cell labels map.

Returns
poleslist of tuples of 1D numpy arrays

For each cell, list of numpy arrays with the y-x coordinates of the poles. In principle, each list has two poles but sometimes not.