delta.utilities.getcellsinframe

delta.utilities.getcellsinframe(labels: ndarray[Any, dtype[uint16]], return_contours: bool = False, background: int = 0) Union[List[int], Tuple[List[int], List[ndarray]]]

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

Parameters
labels2D numpy array of ints

Single frame from labels stack.

return_contoursbool, optional

Flag to get cv2 contours.

Returns
cellslist

Cell numbers (0-based indexing).

contourslist

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