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_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
Built Distribution
File details
Details for the file itk_napari_conversion-0.3.1.tar.gz
.
File metadata
- Download URL: itk_napari_conversion-0.3.1.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 | 9782ea612d85c0cfd72bfd8b5ad54d8965786492560d62a8d9c1228e2f932024 |
|
MD5 | c1c171f57dbefb8ef24f022d1d7600df |
|
BLAKE2b-256 | 28815bcc796fc4a16e021686e5b5aecf7d39875ac3487c5e724ef28011f0124c |
File details
Details for the file itk_napari_conversion-0.3.1-py2.py3-none-any.whl
.
File metadata
- Download URL: itk_napari_conversion-0.3.1-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 | 62be0c7a2765c019cf42f4aed7ab7327465803ac34d6b0852ead59162095453d |
|
MD5 | 0d23ffb3177925846ab9505b23960be6 |
|
BLAKE2b-256 | 899093d7c16dba9c9f5c85b6321a43f795227f534f597a949926b88201c029b2 |