tumourkit.utils.preprocessing.save_png
- tumourkit.utils.preprocessing.save_png(png: ndarray, png_path: str, name: str) None
Saves a PNG image to a file.
- Parameters:
png (np.ndarray) – The image to save.
png_path (str) – The path to the folder where the PNG file should be saved.
name (str) – The name of the PNG file (without extension).
The file extension is set to ‘.GT_cells.png’.