跳转到主要内容

来自艾伦细胞科学研究所的通用科学图像处理模块。

项目描述

AICS图像库

oldaicsimageio软件包旨在提供与CZI、OME-TIFF和PNG文件格式的简单接口。

支持级别

我们目前不对外部使用此代码提供支持,只是将其以原样发布给社区。它用于我们组织内部。我们无法提供任何支持保证。社区可以提交问题,但不应期望有积极的响应。

开发

有关开发代码的相关操作信息,请参阅BUILD.md

使用

from oldaicsimageio import AICSImage

img = AICSImage("my_ome.tiff_or_tiff_or_czi")

# Get the image data as TCZYX
img.data

# Get channel information if you have an OME tiff
pixels = img.metadata.image().Pixels
channels = [pixels.Channel(i) for i in range(pixels.get_channel_count())]
channels = [{"name": c.get_Name(), "index": c.get_ID()} for c in channels]


# Note on channel id differences between oldaicsimageio.OMEXML and lxml.etree._Element:
        # Under lxml.etree._Element, Channel Id looks like the following: `'Channel:0'`
        # Where the single integer corresponds to the channel dimension index in image data.
        # Under oldaicsimageio, the same Channel Id looks like the following: `'Channel:0:0'`
        # Where it is the second of the two integers that corresponds to the channel dimension index in image data.
        # Regardless of structure, these can both be parsed as integers with the following:
        # `int(channel_id.split(":")[-1])`

项目详情


下载文件

下载适用于您的平台文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分发

oldaicsimageio-0.6.6.tar.gz (38.3 kB 查看散列值)

上传时间: 源代码

构建分发

oldaicsimageio-0.6.6-py2.py3-none-any.whl (44.3 kB 查看散列值)

上传时间: Python 2 Python 3

支持者