I want to save an stack of arrays in a tiff file, so a microscopy software can read it in channels and z planes, as images. So this is a 4 dimensions array: (21,32,1024,1024). But I do not find a way.
For example using:
io.imsave(os.path.join(outpath), stack2), this is saved as a stack of individual images but not in grups of 32 channels representing the 21 z planes.
do you know any way to achieve that?