class_docstr: A segmentation of a space into labeled objects
  
  Supports overlapping objects and cacheing. Retrieval can be as a
  single plane (legacy), as multiple planes and as sparse ijv.
class_docstr_tok: ["A","segmentation","of","a","space","into","labeled","objects","Supports","overlapping","objects","and","cacheing",".","Retrieval","can","be","as","a","single","plane","(","legacy",")",",","as","multiple","planes","and","as","sparse","ijv","."]
docstr: Get the sparse representation of the segmentation
  
  returns a Numpy record array where every row represents
  the labeling of a pixel. The dtype record names are taken from
  HDF5ObjectSet.AXIS_[C,T,Z,Y,X] and AXIS_LABELS for the object
  numbers.
docstr_tok: ["Get","the","sparse","representation","of","the","segmentation","returns","a","Numpy","record","array","where","every","row","represents","the","labeling","of","a","pixel",".","The","dtype","record","names","are","taken","from","HDF5ObjectSet.AXIS_","[","C",",","T",",","Z",",","Y",",","X","]","and","AXIS_LABELS","for","the","object","numbers","."]
code: def sparse(self):
      """Get the sparse representation of the segmentation
  
      returns a Numpy record array where every row represents
      the labeling of a pixel. The dtype record names are taken from
      HDF5ObjectSet.AXIS_[C,T,Z,Y,X] and AXIS_LABELS for the object
      numbers.
      """
      if self.__sparse is not None:
          return self.__sparse
  
      if not self.has_dense():
          raise ValueError("Can't find object dense segmentation.")
  
      return self.__convert_dense_to_sparse()
  
file_path: CellProfiler/src/subpackages/core/cellprofiler_core/object/_segmentation.py
imports: from cellprofiler_library.functions.segmentation import convert_dense_to_sparse
  from cellprofiler_library.functions.segmentation import convert_sparse_to_dense
  from cellprofiler_library.functions.segmentation import indices_from_dense
  from cellprofiler_library.functions.segmentation import dense_shape_from_sparse
  from cellprofiler_library.functions.segmentation import _validate_dense
  from cellprofiler_library.functions.segmentation import _validate_sparse
  from cellprofiler_library.functions.segmentation import _validate_dense_shape
label_desc: Use image node_id 7 for calling the Segmentation obj's underlying member method code with example usage: obj.sparse() and returns: self, self