【发布时间】:2020-09-06 02:03:40
【问题描述】:
我有一组来自 Tiff 文件的 4 维数据。
image_stack = io.imread(path, plugin='tifffile')
print(image_stack.shape)
>>> (21, 10, 1331, 1126)
所以最后 2 个维度是图像分辨率。 10 是因为我在给定时间有 10 个相同图像的切片(在 z 轴上) 而 21 是因为所有这些图像都是每秒拍摄的。
如何交换 21 和 10 维度?
【问题讨论】:
-
这能回答你的问题吗? Swapping the dimensions of a numpy array
标签: python python-3.x numpy scikit-image