Python中用于显微镜图像的图像读取、元数据管理和图像写入
项目描述
BioIO
纯Python中用于显微镜图像的图像读取、元数据转换和图像写入
文档
示例用法(请参阅完整文档以获取更多示例)
使用pip安装bioio以及OME TIFF和OME ZARR插件(此示例将不会使用OME ZARR插件)
pip install bioio bioio-ome-tiff bioio-ome-zarr
from bioio import BioImage
# Get a BioImage object
img = BioImage("my_file.tiff") # selects the first scene found
img.data # returns 5D TCZYX numpy array
img.xarray_data # returns 5D TCZYX xarray data array backed by numpy
img.dims # returns a Dimensions object
img.dims.order # returns string "TCZYX"
img.dims.X # returns size of X dimension
img.shape # returns tuple of dimension sizes in TCZYX order
img.get_image_data("CZYX", T=0) # returns 4D CZYX numpy array
# Get the id of the current operating scene
img.current_scene
# Get a list valid scene ids
img.scenes
# Change scene using name
img.set_scene("Image:1")
# Or by scene index
img.set_scene(1)
# Use the same operations on a different scene
# ...
插件注册表
bioio通过特定的插件处理多种不同的图像类型。bioio-dev支持的插件可以在这个注册表中找到。
插件 | 扩展名 | 仓库 |
---|---|---|
arraylike | ArrayLike | 内置的 |
bioio-czi | .czi | Repo |
bioio-dv | .dv, .r3d | Repo |
bioio-imageio | .jpg, .png, 完整列表 | Repo |
bioio-lif | .lif | Repo |
bioio-nd2 | .nd2 | Repo |
bioio-ome-tiff | .ome.tiff, .tiff | Repo |
bioio-ome-tiled-tiff | .tiles.ome.tif | Repo |
bioio-ome-zarr | .zarr | Repo |
bioio-sldy | .sldy, .dir | Repo |
bioio-tifffile | .tif , .tiff | Repo |
bioio-tiff-glob | .tiff (glob) | Repo |
bioio-bioformats | 完整列表 | Repo |
每个读取插件应紧密遵循bioio-base
中规定的规范。因此,读者插件不提供自己的文档是常见的,用户应查阅bioio_base.reader.Reader
以获取底层读取API的API文档。我们鼓励插件作者在更改或添加新功能到其发布的图像读取器时发布自己的文档。
问题
项目详情
下载文件
下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。
源分布
bioio-1.1.0.tar.gz (80.8 kB 查看散列)
构建分布
bioio-1.1.0-py3-none-any.whl (83.4 kB 查看散列)
关闭
bioio-1.1.0.tar.gz的散列
算法 | 散列摘要 | |
---|---|---|
SHA256 | a7e22bfa5ec60385057f3e1800b5292e5764ca6bd795e09954315b27bf0d1d3b |
|
MD5 | e080e1cf5f17940f9fa1ff8aeae783cd |
|
BLAKE2b-256 | e3b960562a3e153ccdc662442430b84d782a53f00293dfba032d37585e5544b7 |
关闭
bioio-1.1.0-py3-none-any.whl的散列
算法 | 散列摘要 | |
---|---|---|
SHA256 | 175eb3466eb3d56fe5673118548e5844fcff5e27f0f14463adfb1a118a3a8d7c |
|
MD5 | d85ba312641cca93fee7f6fe1877619c |
|
BLAKE2b-256 | 4d815bcfc81747e47a34c91686a6945589cb5007c6513673f9f10470ca86d845 |