delta.utilities.getcellsinframe¶
- delta.utilities.getcellsinframe(labels: numpy.ndarray[Any, numpy.dtype[numpy.uint16]], return_contours: bool = False, background: int = 0) Union[List[int], Tuple[List[int], List[numpy.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.