python - 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',
})
提前感谢您的回答。
解决方案
推荐阅读
- javascript - 值应该是字符串 - 无效的参数 e2e 测试
- python - 从 .txt 文件中获取两个字符、计数和打印
- java - Math.min 军事时间与 Base 8
- node.js - 有没有办法使用 NODEJS 在网页上显示 HDMI 接收到的相机图像?
- java - 关闭扫描仪类时出错
- node.js - Universal-cookie 制作私有路由
- java - 在边界内找到最近的邻居和自身
- python - 销毁 Tkinter 按钮
- ios - Swift - NSInternalInconsistencyException',原因:'请求第 (1) 节的行数超出范围
- android - Websocket 安全错误:未验证主机名