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.