Segmentation.save#

Segmentation.save(out_path, mode='hdf')[source]#

Save a segmentation to either a yaml file or an hdf file if part of a DVector.

Parameters:
  • out_path (PathLike) – Path to where the data should be saved. The file extension must match ‘mode’

  • mode (Literal["hdf", "yaml"]) – Currently only can be ‘hdf’ or ‘yaml’. How to save the file.