跳转到主要内容

存储在OME-Zarr格式的图像的IO。

项目描述

ITKIOOMEZarrNGFF

Build Status

PyPI Version

License

概述

这是一个用于存储在基于ZarrOME-NGFF文件格式中的图像的ITK外部模块的IO。

安装

Python包索引中提供了itk-ioomezarrngff

> python -m pip install itk-ioomezarrngff

示例用法

C++

从C++使用不需要任何特殊操作。在特殊情况下,您可能需要调用

itk::OMEZarrNGFFImageIOFactory::RegisterOneFactory();

Python

在Python中,我们需要显式指定IO,否则由于目录是内置默认值,将调用DICOM IO。示例

import sys
import itk
imageio = itk.OMEZarrNGFFImageIO.New()
image = itk.imread(sys.argv[1], imageio=imageio)
itk.imwrite(image, sys.argv[2], imageio=imageio, compression=False)

构建说明

ITKIOOMEZarrNGFF是ITK的C++外部模块。它可以使用CMake和Ninja、gcc或MSVC等构建工具进行构建。

在未来,ITKIOOMEZarrNGFF可能作为ITK远程模块提供,可以直接包含在ITK构建过程中。

先决条件

构建

ITKIOOMEZarrNGFF使用CMake进行构建过程。

# Create the build directory
> mkdir path/to/ITKIOOMEZarrNGFF-build
> cd path/to/ITKIOOMEZarrNGFF-build

# Configure the project
path/to/ITKIOOMEZarrNGFF-build > cmake -DITK_DIR:PATH="path/to/ITK-build" "path/to/ITKIOOMEZarrNGFF"

# Build the project
path/to/ITKIOOMEZarrNGFF-build > cmake --build . --config "Release"

测试

可以使用CTest运行ITKIOOMEZarrNGFF测试。

path/to/ITKIOOMEZarrNGFF-build > ctest -C "Release"

包装

有关为Python包装ITK外部模块的信息,请参阅ITK软件指南

附加说明

ITKIOOMEZarrNGFF依赖于Google的Tensorstore库的分支,用于Zarr互操作。InsightSoftwareConsortium/Tensorstore分支实现了对zip的支持,包括文件系统和内存中的zip读写。


致谢

ITKIOOMEZarrNGFF部分得益于以下组织的支持

项目详情


下载文件

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

源分布

此版本没有提供源分布文件。请参阅生成分布存档的教程。

构建分布

itk_ioomezarrngff-0.3.0-cp311-abi3-win_amd64.whl (12.2 MB 查看哈希值)

上传时间: CPython 3.11+ Windows x86-64

itk_ioomezarrngff-0.3.0-cp311-abi3-manylinux_2_28_x86_64.whl (18.2 MB 查看哈希值)

上传时间: CPython 3.11+ manylinux: glibc 2.28+ x86-64

itk_ioomezarrngff-0.3.0-cp311-abi3-macosx_11_0_arm64.whl (11.5 MB 查看哈希值)

上传时间 CPython 3.11+ macOS 11.0+ ARM64

itk_ioomezarrngff-0.3.0-cp310-cp310-win_amd64.whl (12.2 MB 查看哈希值)

上传时间 CPython 3.10 Windows x86-64

itk_ioomezarrngff-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl (18.2 MB 查看哈希值)

上传时间 CPython 3.10 manylinux: glibc 2.28+ x86-64

itk_ioomezarrngff-0.3.0-cp310-cp310-macosx_11_0_arm64.whl (11.5 MB 查看哈希值)

上传时间 CPython 3.10 macOS 11.0+ ARM64

itk_ioomezarrngff-0.3.0-cp39-cp39-win_amd64.whl (12.2 MB 查看哈希值)

上传时间 CPython 3.9 Windows x86-64

itk_ioomezarrngff-0.3.0-cp39-cp39-manylinux_2_28_x86_64.whl (18.2 MB 查看哈希值)

上传时间 CPython 3.9 manylinux: glibc 2.28+ x86-64

itk_ioomezarrngff-0.3.0-cp39-cp39-macosx_11_0_arm64.whl (11.5 MB 查看哈希值)

上传时间 CPython 3.9 macOS 11.0+ ARM64

itk_ioomezarrngff-0.3.0-cp38-cp38-win_amd64.whl (12.3 MB 查看哈希值)

上传时间 CPython 3.8 Windows x86-64

itk_ioomezarrngff-0.3.0-cp38-cp38-manylinux_2_28_x86_64.whl (18.2 MB 查看哈希值)

上传时间 CPython 3.8 manylinux: glibc 2.28+ x86-64

由以下机构支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面