CellMask#

class spora_io.datasets._types.CellMask(*, mask, tissue_id, mapping=None)[source]#

Cell Segmentation/Instance Mask class to represent a Cell Segmentation/Instance Mask sample.

Parameters:
  • mask (ndarray[tuple[Any, ...], dtype[int64]])

  • tissue_id (str)

  • mapping (Dict[int, str] | None)