Livewire-based annotation of objects.
Project description
🪄 napari-magic-wand
Object annotation in Napari using a magic wand (shortest path algorithm). This plugin is based on the 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.
Please also take a look at the 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
Pluginsmenu of Napari. - Open an image to annotate (2D, 2D+t, or 3D).
- Click on the button "Start live wire" or press
S. A newLabelslayer 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.
Project details
Release history Release notifications | RSS feed
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
Hashes for napari_magic_wand-0.0.2-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 5e6b202a3a9a136913ce8a53b7142d5bee6c4e6646fadbf1c79a9d61b51efb31 |
|
| MD5 | 635968e048aa9ce2267f1d498e27593a |
|
| BLAKE2b-256 | 616e826e7837fb0f061540a448ffe55b871141ffe0ff36f5eb69f0a179283fcc |