简体   繁体   English

从多通道图像中提取通道名称

[英]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.

相关问题 使用 OpenCV 和 Numpy 从另一个图像中提取的像素坐标创建多通道图像 - Create a multi-channel image from pixel coordinates extracted from another image with OpenCV and Numpy 将多声道PyAudio转换为NumPy数组 - Convert multi-channel PyAudio into NumPy array 如何用多通道一维对象训练神经网络? - How to train neural networks with multi-channel 1D objects? 将多通道numpy数组转换为photoshop PSD文件 - Convert multi-channel numpy array to photoshop PSD file 支持多渠道订阅者的Python可观察实现 - Python observable implementation that supports multi-channel subscribers 创建多通道网络:“连接”对象没有“形状”属性 - Creating a multi-channel network: 'Concatenate' object has no attribute 'shape' 在 Pytorch 中使用 BCEWithLogitsLoss 的多通道 2D 掩码权重 - Multi-channel, 2D mask weights using BCEWithLogitsLoss in Pytorch 多渠道漏斗 API - 未知 API 或版本 - Multi-Channel Funnel API - Unknown API or Version PyTorch:使用 1-D 张量和多通道 (3-D) 图像张量执行 add/sub/mul 操作 - PyTorch: Perform add/sub/mul operations using 1-D tensor and multi-channel (3-D) image tensor 如何在不使用 OpenCV 库的情况下在 Python 中读取多通道 16 位每通道图像? - How to read multi-channel 16-bit-per-channel images in Python without using OpenCV library?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM