cellcoloc.try_load_roi_labelsο
- cellcoloc.try_load_roi_labels(path)[source]ο
Load a saved 2D ROI label mask when it exists.
- Parameters:
path β Expected path of the ROI label TIFF.
- Return type:
ndarray|None- Returns:
np.ndarray | None β The loaded ROI label mask when the file exists, otherwise
None. This helper is useful for interactive scripts that should prefer a previously drawn ROI mask but fall back to manual drawing when no saved mask is available yet.