首页 > 解决方案 > Python,tifffile tiff 将我的堆栈图像保存为多通道

问题描述

我尝试在 python 中使用 tifffile.imwrite 保存图像堆栈。但是当我在 imageJ 中打开我的图像时,我有 100 个通道而不是 100 个计划。

我以这种方式保存我的图像:

tifffile.imwrite('my_image.tif',
                 image.astype('float32'),
                 shape=image.shape,
                 imagej=True,
                 resolution=(1/X_SIZE, 1/Y_SIZE),
                 metadata={'spacing': Z_SIZE,
                           'unit': 'um',
                           'axes': 'ZXY',
                           })

提前感谢您的回答。

标签: pythonimagej

解决方案


推荐阅读