Skip to main content

🪄 napari-magic-wand

Object annotation in Napari using magic wands (shortest path algorithms). This plugin 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 the contour of solid objects.

The plugin provides two annotation functions:

  • The Magic wand tool is based on the PyIFT library. Use it to trace annotations that follow the intensity gradients in the image.
  • The Brightest path tool is based on the Brightest Path Lib library. Use it to trace annotations that follow the brightest (or darkest) path between two points.

Related plugins

Take a look at these related plugins that offer similar functionality and slightly different user interactions.

Installation

You can install napari-magic-wand via pip:

pip install napari-magic-wand

Usage

  • Select the tool of your choice from the Plugins menu of Napari.
  • Open an image to annotate (2D, 2D+t, or 3D).
  • Click on the button "Start live wire". A new Labels layer Live wire (current edit) should appear.
  • Click on the image to annotate paths interactively.
  • Double-click to confirm an annotation and move to the next.

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.
  • Black ridges: Tick this checkbox if you are annotating dark paths on a bright background.

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.

Metadata

Release files for napari-magic-wand 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for napari-magic-wand 0.0.3
File Size Uploaded Provenance Actions
napari-magic-wand-0.0.3.tar.gz 9.7 kB Without provenance Details for napari-magic-wand-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for napari-magic-wand 0.0.3
File Interpreter ABI Platform Actions
napari_magic_wand-0.0.3-py3-none-any.whl Python 3 none any Details for napari_magic_wand-0.0.3-py3-none-any.whl

Total release size: 20.0 kB

Release files / napari-magic-wand-0.0.3.tar.gz

Download URL napari-magic-wand-0.0.3.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1330e05048c57ab1a2e3deed22ede22cc83e522dea8e6c4f4646ac3c39b2b615
BLAKE2b-256 checksum
How to use checksums
684d7bc34a7525f900f85ec8977714b60f89741e1c3a3fe9ea4efcf3d91e588f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / napari_magic_wand-0.0.3-py3-none-any.whl

Download URL napari_magic_wand-0.0.3-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f21b22aa183a27ebb3c726cad640c20dfe260863504710f1d8986d0510c0ba6
BLAKE2b-256 checksum
How to use checksums
23b6c79087cb2abd73cacc81510558cbf3334f6ebc8650d1128bcfc72b7643ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for napari-magic-wand 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page