Skip to main content

IO for images stored in the OME-Zarr format.

Project description

ITKIOOMEZarrNGFF

Build Status

PyPI Version

License

Overview

This is an ITK external module for IO of images stored in Zarr-backed OME-NGFF file format.

Installation

The itk-ioomezarrngff Python package is available on the Python Package Index.

> python -m pip install itk-ioomezarrngff

Example Usage

C++

Usage from C++ should not require any special action. In special situations, you might need to invoke:

itk::OMEZarrNGFFImageIOFactory::RegisterOneFactory();

Python

In Python, we need to explicitly specify the IO, otherwise DICOM IO will be invoked because it is the built-in default for directories. Example:

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)

Build Instructions

ITKIOOMEZarrNGFF is an ITK C++ external module. It may be built with CMake and build tools such as Ninja, gcc, or MSVC.

In the future ITKIOOMEZarrNGFF may be made available as an ITK remote module for direct inclusion in the ITK build process.

Prerequisites

Building

ITKIOOMEZarrNGFF uses CMake for its build process.

# 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"

Testing

ITKIOOMEZarrNGFF tests may be run with CTest:

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

Wrapping

See the ITK Software Guide for information on wrapping ITK external modules for Python.

Additional Notes

ITKIOOMEZarrNGFF depends on a fork of Google's Tensorstore library for Zarr interoperation. The InsightSoftwareConsortium/Tensorstore fork implements additional zip support, both for filesystem and in memory zip reading and writing.


Acknowledgements

ITKIOOMEZarrNGFF was developed in part with support from:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

itk_ioomezarrngff-0.3.0-cp311-abi3-win_amd64.whl (12.2 MB view hashes)

Uploaded CPython 3.11+ Windows x86-64

itk_ioomezarrngff-0.3.0-cp311-abi3-manylinux_2_28_x86_64.whl (18.2 MB view hashes)

Uploaded CPython 3.11+ manylinux: glibc 2.28+ x86-64

itk_ioomezarrngff-0.3.0-cp311-abi3-macosx_11_0_arm64.whl (11.5 MB view hashes)

Uploaded CPython 3.11+ macOS 11.0+ ARM64

itk_ioomezarrngff-0.3.0-cp310-cp310-win_amd64.whl (12.2 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

itk_ioomezarrngff-0.3.0-cp310-cp310-manylinux_2_28_x86_64.whl (18.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.28+ x86-64

itk_ioomezarrngff-0.3.0-cp310-cp310-macosx_11_0_arm64.whl (11.5 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

itk_ioomezarrngff-0.3.0-cp39-cp39-win_amd64.whl (12.2 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

itk_ioomezarrngff-0.3.0-cp39-cp39-manylinux_2_28_x86_64.whl (18.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.28+ x86-64

itk_ioomezarrngff-0.3.0-cp39-cp39-macosx_11_0_arm64.whl (11.5 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

itk_ioomezarrngff-0.3.0-cp38-cp38-win_amd64.whl (12.3 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

itk_ioomezarrngff-0.3.0-cp38-cp38-manylinux_2_28_x86_64.whl (18.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.28+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page