Skip to main content

Convert between itk and napari data structures

Project description

itk-napari-conversion

PyPI License tests

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 tests.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.4.0.tar.gz (49.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

itk_napari_conversion-0.4.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file itk_napari_conversion-0.4.0.tar.gz.

File metadata

  • Download URL: itk_napari_conversion-0.4.0.tar.gz
  • Upload date:
  • Size: 49.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for itk_napari_conversion-0.4.0.tar.gz
Algorithm Hash digest
SHA256 29908dc44cf41c8cc26c51bac98a59a1559ceb8df389c3920e14363da83338dd
MD5 b08edbe279a20812939e4b96ef39c634
BLAKE2b-256 201277a83314af162b73027b329f0c9d8fc442b27b8a6fc252feb3f9d57764d5

See more details on using hashes here.

File details

Details for the file itk_napari_conversion-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for itk_napari_conversion-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc742b8f44c4f30a6ff93be22a4351e0c53476aaf0889f74f66e557ad91dc63c
MD5 9c8ca8ff57a773c03290928b0c470f30
BLAKE2b-256 ec8ab9591f430d46c31f348ee556d2d3761ee8668114c2813fc94e4bcfcd7602

See more details on using hashes here.

Supported by

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