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 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29908dc44cf41c8cc26c51bac98a59a1559ceb8df389c3920e14363da83338dd
|
|
| MD5 |
b08edbe279a20812939e4b96ef39c634
|
|
| BLAKE2b-256 |
201277a83314af162b73027b329f0c9d8fc442b27b8a6fc252feb3f9d57764d5
|
File details
Details for the file itk_napari_conversion-0.4.0-py3-none-any.whl.
File metadata
- Download URL: itk_napari_conversion-0.4.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc742b8f44c4f30a6ff93be22a4351e0c53476aaf0889f74f66e557ad91dc63c
|
|
| MD5 |
9c8ca8ff57a773c03290928b0c470f30
|
|
| BLAKE2b-256 |
ec8ab9591f430d46c31f348ee556d2d3761ee8668114c2813fc94e4bcfcd7602
|