napari-magic-wand


Namenapari-magic-wand JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/MalloryWittwer/napari-magic-wand.git
SummaryLivewire-based annotation of objects.
upload_time2023-11-06 16:46:17
maintainer
docs_urlNone
authorMallory Wittwer
requires_python>=3.8
licenseBSD-3-Clause
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 🪄 napari-magic-wand

Object annotation in Napari using a *magic wand* (shortest path algorithm). This plugin is based on the [PyIFT](https://github.com/PyIFT/pyift) library. This tool supports annotation in 2D (grayscale and RGB), 2D+t (grayscale, frame by frame) and 3D images (slice by slice). It can be used to annotate **paths** or solid objects via their contour.

<p align="center">
    <img src="https://github.com/MalloryWittwer/napari-magic-wand/blob/main/assets/screenshot.gif" height="400">
</p>

Please also take a look at the [grabber-ift](https://www.napari-hub.org/plugins/grabber-ift) plugin, which offers similar functionality but slightly different user interactions.

## Installation

You can install `napari-magic-wand` via [pip]:

    pip install napari-magic-wand

## Usage

- Select the plugin from the `Plugins` menu of Napari.
- Open an image to annotate (2D, 2D+t, or 3D).
- Click on the button "Start live wire" or press `S`. A new `Labels` layer *Live wire (current edit)* should appear.
- With the *Live wire* layer selected, click on the image to annotate the contour of an object.
- Double-click to confirm the annotation path.

**Options and parameters**
- *Close and fill objects*: You can fill (or not) the inside of the annotated object. Do not tick this option if you are annotating **paths** (e.g. filament-like strucutres).
- *Auto-increment label index*: Tick this option to increment the label index every time a new object is completed (e.g. if you are annotating multiple objects).
- *Sigma*: Higher values of sigma increase the "stickiness" of the object boundaries to the magic wand.

## Contributing

Contributions are very welcome. Please get in touch if you'd like to be involved in improving or extending the package.

## License

Distributed under the terms of the [BSD-3] license,
"napari-magic-wand" is free and open source software

## Issues

If you encounter any problems, please file an issue along with a detailed description.

----------------------------------

This [napari] plugin was generated with [Cookiecutter] using [@napari]'s [cookiecutter-napari-plugin] template.

[napari]: https://github.com/napari/napari
[Cookiecutter]: https://github.com/audreyr/cookiecutter
[@napari]: https://github.com/napari
[MIT]: http://opensource.org/licenses/MIT
[BSD-3]: http://opensource.org/licenses/BSD-3-Clause
[GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt
[GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt
[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0
[Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt
[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin

[napari]: https://github.com/napari/napari
[tox]: https://tox.readthedocs.io/en/latest/
[pip]: https://pypi.org/project/pip/
[PyPI]: https://pypi.org/

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/MalloryWittwer/napari-magic-wand.git",
    "name": "napari-magic-wand",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "Mallory Wittwer",
    "author_email": "mallory.wittwer@epfl.ch",
    "download_url": "https://files.pythonhosted.org/packages/9f/2d/aa08b72fcd16e849b2a5106f34724625af3b26dd8bb56b6c77142ed6d6e4/napari-magic-wand-0.0.2.tar.gz",
    "platform": null,
    "description": "# \ud83e\ude84 napari-magic-wand\n\nObject annotation in Napari using a *magic wand* (shortest path algorithm). This plugin is based on the [PyIFT](https://github.com/PyIFT/pyift) library. This tool supports annotation in 2D (grayscale and RGB), 2D+t (grayscale, frame by frame) and 3D images (slice by slice). It can be used to annotate **paths** or solid objects via their contour.\n\n<p align=\"center\">\n    <img src=\"https://github.com/MalloryWittwer/napari-magic-wand/blob/main/assets/screenshot.gif\" height=\"400\">\n</p>\n\nPlease also take a look at the [grabber-ift](https://www.napari-hub.org/plugins/grabber-ift) plugin, which offers similar functionality but slightly different user interactions.\n\n## Installation\n\nYou can install `napari-magic-wand` via [pip]:\n\n    pip install napari-magic-wand\n\n## Usage\n\n- Select the plugin from the `Plugins` menu of Napari.\n- Open an image to annotate (2D, 2D+t, or 3D).\n- Click on the button \"Start live wire\" or press `S`. A new `Labels` layer *Live wire (current edit)* should appear.\n- With the *Live wire* layer selected, click on the image to annotate the contour of an object.\n- Double-click to confirm the annotation path.\n\n**Options and parameters**\n- *Close and fill objects*: You can fill (or not) the inside of the annotated object. Do not tick this option if you are annotating **paths** (e.g. filament-like strucutres).\n- *Auto-increment label index*: Tick this option to increment the label index every time a new object is completed (e.g. if you are annotating multiple objects).\n- *Sigma*: Higher values of sigma increase the \"stickiness\" of the object boundaries to the magic wand.\n\n## Contributing\n\nContributions are very welcome. Please get in touch if you'd like to be involved in improving or extending the package.\n\n## License\n\nDistributed under the terms of the [BSD-3] license,\n\"napari-magic-wand\" is free and open source software\n\n## Issues\n\nIf you encounter any problems, please file an issue along with a detailed description.\n\n----------------------------------\n\nThis [napari] plugin was generated with [Cookiecutter] using [@napari]'s [cookiecutter-napari-plugin] template.\n\n[napari]: https://github.com/napari/napari\n[Cookiecutter]: https://github.com/audreyr/cookiecutter\n[@napari]: https://github.com/napari\n[MIT]: http://opensource.org/licenses/MIT\n[BSD-3]: http://opensource.org/licenses/BSD-3-Clause\n[GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt\n[GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt\n[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0\n[Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt\n[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin\n\n[napari]: https://github.com/napari/napari\n[tox]: https://tox.readthedocs.io/en/latest/\n[pip]: https://pypi.org/project/pip/\n[PyPI]: https://pypi.org/\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "Livewire-based annotation of objects.",
    "version": "0.0.2",
    "project_urls": {
        "Homepage": "https://github.com/MalloryWittwer/napari-magic-wand.git"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "616e826e7837fb0f061540a448ffe55b871141ffe0ff36f5eb69f0a179283fcc",
                "md5": "635968e048aa9ce2267f1d498e27593a",
                "sha256": "5e6b202a3a9a136913ce8a53b7142d5bee6c4e6646fadbf1c79a9d61b51efb31"
            },
            "downloads": -1,
            "filename": "napari_magic_wand-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "635968e048aa9ce2267f1d498e27593a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 7598,
            "upload_time": "2023-11-06T16:46:15",
            "upload_time_iso_8601": "2023-11-06T16:46:15.562937Z",
            "url": "https://files.pythonhosted.org/packages/61/6e/826e7837fb0f061540a448ffe55b871141ffe0ff36f5eb69f0a179283fcc/napari_magic_wand-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9f2daa08b72fcd16e849b2a5106f34724625af3b26dd8bb56b6c77142ed6d6e4",
                "md5": "6c44143f4d941cef59bdc5f86791caf5",
                "sha256": "32c6da342a3e02b36e1867971ba8d0a0691e96a5919f050c2948a6abff1cb0dd"
            },
            "downloads": -1,
            "filename": "napari-magic-wand-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "6c44143f4d941cef59bdc5f86791caf5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 8545,
            "upload_time": "2023-11-06T16:46:17",
            "upload_time_iso_8601": "2023-11-06T16:46:17.605896Z",
            "url": "https://files.pythonhosted.org/packages/9f/2d/aa08b72fcd16e849b2a5106f34724625af3b26dd8bb56b6c77142ed6d6e4/napari-magic-wand-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-06 16:46:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "MalloryWittwer",
    "github_project": "napari-magic-wand",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "napari-magic-wand"
}
        
Elapsed time: 0.14401s