delta.utils.cells_in_frame

delta.utils.cells_in_frame(labels, *, return_contours=False)[source]

Get numbers of cells present in frame, sorted along Y axis.

Parameters:
labels2D numpy array of uint16

Single frame from labels stack.

return_contoursbool, optional

Flag to get cv2 contours.

Returns:
cellidslist

Cell ids.

contourslist

List of cv2 contours for each cell. Returned if return_contours==True.