delta.data.saveResult_seg¶
- delta.data.saveResult_seg(save_path: str, npyfile: ndarray, files_list: List[str] = [], multipage: bool = False)¶
Saves an array of segmentation output images to disk
- Parameters
- save_pathstring
Path to save folder.
- npyfile3D or 4D numpy array
Array of segmentation outputs to save to individual files. If 4D, only the images from the first index of axis=3 will be saved.
- files_listlist of strings, optional
Filenames to save the segmentation masks as. png, tif or jpg extensions work. The default is [].
- multipagebool, optional
Flag to save all output masks as a single, multi-page TIFF file. Note that if the file already exists, the masks will be appended to it. The default is False.
- Returns
- None.