This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import typing | |
import numpy as np | |
import tifffile | |
def save_imagej_tiff(save_path: str, data: np.ndarray, scale: tuple[float, ...], units: str, com): | |
"""Save image as tiff to path or buffer | |
:param scale: image scale | |
:param data: image for save | |
:param units: units of image |