delta.utils.image_edges#

delta.utils.image_edges(contour, shape)[source]#

Identify if cell touches image borders.

Parameters
contourlist

Single cell contour from cv2 findcontours.

shapetuple[int, int]

Shape of the image.

Returns
edge_strstr

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