This file contains hidden or 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 tifffile | |
import numpy as np | |
for i in range(1,x): | |
# load image as 16 bit (so that when we add to it, it can go past 255) | |
# input file name expects end number | |
# adjust range for number of input files | |
current_image = tifffile.imread(f"input_file_name_x.tif").astype(np.uint16) | |
if i==1: |