# itk-napari-conversion
[![PyPI](https://img.shields.io/pypi/v/itk_napari_conversion.svg)](https://pypi.python.org/pypi/itk_napari_conversion)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/InsightSoftwareConsortium/itk-napari-conversion/blob/master/LICENSE)
Convert between [itk](https://itk.org) and [napari](https://napari.org) 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](https://github.com/InsightSoftwareConsortium/ITK/blob/master/CONTRIBUTING.md)
and the [itk code of
conduct](https://github.com/InsightSoftwareConsortium/ITK/blob/master/CODE_OF_CONDUCT.md).
Raw data
{
"_id": null,
"home_page": "https://github.com/InsightSoftwareConsortium/itk-napari-conversion",
"name": "itk_napari_conversion",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Matt McCormick",
"author_email": "matt.mccormick@kitware.com",
"download_url": "https://files.pythonhosted.org/packages/28/81/5bcc796fc4a16e021686e5b5aecf7d39875ac3487c5e724ef28011f0124c/itk_napari_conversion-0.3.1.tar.gz",
"platform": "",
"description": "# itk-napari-conversion\n\n[![PyPI](https://img.shields.io/pypi/v/itk_napari_conversion.svg)](https://pypi.python.org/pypi/itk_napari_conversion)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/InsightSoftwareConsortium/itk-napari-conversion/blob/master/LICENSE)\n\nConvert between [itk](https://itk.org) and [napari](https://napari.org) data structures.\n\nInstallation\n------------\n\n```\npip install itk-napari-conversion\n```\n\nUsage\n-----\n\nConvert an `itk.Image` to an `napari.layers.Image`:\n\n```\nfrom itk_napari_conversion import image_layer_from_image\n\nimage_layer = image_layer_from_image(image)\n```\n\nConvert to an `napari.layers.Image` to an `itk.Image`:\n```\nfrom itk_napari_conversion import image_from_image_layer\n\nimage = image_from_image_layer(image_layer)\n```\n\nHacking\n-------\n\nContributions are welcome!\n\nTo test locally:\n\n```\ngit clone https://github.com/InsightSoftwareConsortium/itk-napari-conversion.git\ncd itk-napari-conversation\npip install flit pytest\nflit install --symlink\npytest test.py\n```\n\nFollow the [itk contributing\nguidelines](https://github.com/InsightSoftwareConsortium/ITK/blob/master/CONTRIBUTING.md)\nand the [itk code of\nconduct](https://github.com/InsightSoftwareConsortium/ITK/blob/master/CODE_OF_CONDUCT.md).\n",
"bugtrack_url": null,
"license": "",
"summary": "Convert between itk and napari data structures.",
"version": "0.3.1",
"project_urls": {
"Homepage": "https://github.com/InsightSoftwareConsortium/itk-napari-conversion"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "899093d7c16dba9c9f5c85b6321a43f795227f534f597a949926b88201c029b2",
"md5": "0d23ffb3177925846ab9505b23960be6",
"sha256": "62be0c7a2765c019cf42f4aed7ab7327465803ac34d6b0852ead59162095453d"
},
"downloads": -1,
"filename": "itk_napari_conversion-0.3.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "0d23ffb3177925846ab9505b23960be6",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 6626,
"upload_time": "2021-04-28T21:14:36",
"upload_time_iso_8601": "2021-04-28T21:14:36.895666Z",
"url": "https://files.pythonhosted.org/packages/89/90/93d7c16dba9c9f5c85b6321a43f795227f534f597a949926b88201c029b2/itk_napari_conversion-0.3.1-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "28815bcc796fc4a16e021686e5b5aecf7d39875ac3487c5e724ef28011f0124c",
"md5": "c1c171f57dbefb8ef24f022d1d7600df",
"sha256": "9782ea612d85c0cfd72bfd8b5ad54d8965786492560d62a8d9c1228e2f932024"
},
"downloads": -1,
"filename": "itk_napari_conversion-0.3.1.tar.gz",
"has_sig": false,
"md5_digest": "c1c171f57dbefb8ef24f022d1d7600df",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6665,
"upload_time": "2021-04-28T21:14:37",
"upload_time_iso_8601": "2021-04-28T21:14:37.832302Z",
"url": "https://files.pythonhosted.org/packages/28/81/5bcc796fc4a16e021686e5b5aecf7d39875ac3487c5e724ef28011f0124c/itk_napari_conversion-0.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2021-04-28 21:14:37",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "InsightSoftwareConsortium",
"github_project": "itk-napari-conversion",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "itk_napari_conversion"
}