scallops.segmentation.cellpose.segment_nuclei_cellpose

scallops.segmentation.cellpose.segment_nuclei_cellpose(image, nuclei_channel=0, diameter=None, chunks=None, **kwargs)

Segment nuclei using cellpose.

Parameters:
  • image (DataArray) – Input image with dimensions (t, c, z, y, x).

  • nuclei_channel (int) – Index of nuclei channel (typically DAPI).

  • diameter (float | None) – The diameter parameter for cellpose.

  • chunks (tuple[int, int] | None) – Chunk size to perform segmentation using overlapping chunks.

  • kwargs (Any) – Additional arguments to pass to model.eval.

Returns:

Nuclei labels.

Return type:

ndarray | Array