TIFF文件的Numpy阵列的形状是什么?

发布于 2025-01-21 16:30:06 字数 191 浏览 3 评论 0原文

我想用.TIFF扩展名制作多个切片的图像。我听说TIFF可以包含多个堆叠的图像。

因此,我读取具有形状(宽度,高度,3)的Numpy阵列的多个图像(.png)。 (3:RGB频道)

然后,为了堆叠100片,TIFF文件的总形状是什么? 会是(100,宽度,高度,3)吗? (宽度,高度,3,100)? (宽度,高度,100,3)?还是其他?

I'd like to make image with multi slices with .tiff extension. I heard that tiff can contain multiple images stacked.

So, I read multiple images(.png) with numpy array, which has shape (width, height, 3).
(3 : rgb channel)

Then, in order to stack 100 slices, what would be total shape of tiff file?
Would it be (100, width, height, 3)? (width, height, 3, 100)? (width, height, 100, 3)? or any else?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文