delta.utilities.extract_poles¶
- delta.utilities.extract_poles(end_img: numpy.ndarray[Any, numpy.dtype[numpy.bool_]], labels: numpy.ndarray[Any, numpy.dtype[numpy.uint16]]) List[List[numpy.ndarray[Any, numpy.dtype[numpy.uint16]]]]¶
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.