Convert between itk and napari data structures.
Project description
itk-napari-conversion
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_from_layer
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
Built Distribution
File details
Details for the file itk_napari_conversion-0.3.0.tar.gz
.
File metadata
- Download URL: itk_napari_conversion-0.3.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf2856ec72fd47907e0f7b80eb6afae39d7d5711b841365f3d57555d0688a723 |
|
MD5 | b14d614af4ff1e71dc4b5a2a3551f905 |
|
BLAKE2b-256 | 1e8c3169e9e56421b7804356f6a0841e0def0a3f264504e76f68aadb94babeb1 |
Provenance
File details
Details for the file itk_napari_conversion-0.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: itk_napari_conversion-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6d731ece3a260cf14f5aa3298ca1050e15c5e436999a446290c56db2b91464f |
|
MD5 | c787b0a6fd13a3a517bf0aa489f24ba6 |
|
BLAKE2b-256 | 4827457c1345e1796445f765ec017b4a00a172f9cb31c41aa73fccf54b77514f |