Skip to main content

Convert between itk and napari data structures.

Project description

itk-napari-conversion

PyPI License

Convert between itk and napari data structures.

Installation

pip install itk-napari-conversion

Usage

Convert an itk.Image to an napari.layers.Image:

from itk_napari_conversion import image_layer_from_image

image_layer = image_layer_from_image(image)

Convert to an napari.layers.Image to an itk.Image:

from itk_napari_conversion import image_from_image_layer

image = image_from_image_layer(image_layer)

Hacking

Contributions are welcome!

To test locally:

git clone https://github.com/InsightSoftwareConsortium/itk-napari-conversion.git
cd itk-napari-conversation
pip install flit pytest
flit install --symlink
pytest test.py

Follow the itk contributing guidelines and the itk code of conduct.

Project details


Download files

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

Source Distribution

itk_napari_conversion-0.3.1.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

itk_napari_conversion-0.3.1-py2.py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 2 Python 3

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