如何访问在 ImageJ 中但在 Python 中看到的 .tif 元数据?

发布于 2025-01-20 04:27:31 字数 302 浏览 0 评论 0原文

我将显微镜实验中的 .tif 文件加载到 ImageJ 中,它告诉我显微镜视野的尺寸(424.27x424.27 微米)。要在 ImageJ 中访问此数据,我转到“图像”选项卡,然后“显示信息”,然后滚动到底部以查找此数据:imageJ 中的显微镜元数据

如何在 python 中访问此数据?我的目标是在 python 中显示显微镜数据,我已经做到了,但我希望图形的 x 轴和 y 轴达到 424.27 微米。

谢谢!

I load a .tif file from a microscopy experiment into ImageJ, and it tells me the dimensions of the field of view of the microscope (424.27x424.27 microns). To access this in ImageJ, I go to the Image tab, then 'show info', and then scroll to the bottom to find this data:microscopy metadata in imageJ

How can I access this data in python? My aim is to show microscopy data in python, which I have already done, but I want to have the x and y axes of the figure going up to 424.27 microns.

Thanks!

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

多孤肩上扛 2025-01-27 04:27:31

我认为数据可能与tiff标签x_resolution和y_resolution有关。有关一些基线 tiff 标签的更多详细信息,请参阅链接:https://www. awaresystems.be/imaging/tiff/tifftags/baseline.html

tifffile 可能会有所帮助。安装并导入它,我认为其网站上的代码示例就是您想要的。

with TiffFile('temp.tif') as tif:
...     tag = tif.pages[0].tags['XResolution']

I think the data may be related to the tiff tag x_resolution and y_resolution. See the link for more details about some baseline tiff tags: https://www.awaresystems.be/imaging/tiff/tifftags/baseline.html

tifffile may be helpful. Install and import it, I think the code sample on its website is what you want.

with TiffFile('temp.tif') as tif:
...     tag = tif.pages[0].tags['XResolution']
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文