delta.utilities.image_edges

delta.utilities.image_edges(contour: numpy.ndarray, image: numpy.ndarray[Any, numpy.dtype[Any]]) str

Identify if cell touches image borders

Parameters
contourlist

Single cell contour from cv2 findcontours.

image2D numpy array

Image where the cell is present.

Returns
edge_strstr

String describing edges touched by the cell. Can be a combination of the following strs: ‘-x’, ‘+x’, ‘-y’, ‘+y’. Empty otherwise.