[英]extract channel names from a multi-channel image
I am using skimage.io.imread
(which uses tifffile
) to read a QPTIFF file.我正在使用
skimage.io.imread
(使用tifffile
)来读取 QPTIFF 文件。 Multiple channels are successfully read as multiple dimensions.多个通道成功读取为多个维度。 Is it possible to extract the channel names and other metadata?
是否可以提取频道名称和其他元数据?
PerkinElmer QPI metadata are stored as XML in the ImageDescription TIFF tags. PerkinElmer QPI 元数据作为 XML 存储在 ImageDescription TIFF 标签中。 To read the XML metadata, use the tifffile.TiffFile class, eg:
要读取 XML 元数据,请使用 tifffile.TiffFile 类,例如:
from xml.etree import ElementTree
from tifffile import TiffFile
with TiffFile('LuCa-7color_Scan1.tiff') as tif:
for page in tif.series[0].pages:
print(ElementTree.fromstring(page.description).find('Name').text)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.