napari-annotator
A lightweight plugin extending label layer control.
This napari plugin was generated with copier using the napari-plugin-template.
Description
This lightweight plugin helps you navigate your labels layer. It is intended to ease your manual annotation work.
- Select a label from the list.
- Toggle the visibility of individual label entries.
- Move to the centroid of a label at the current zoom.
- Change the color of individual labels.
- Erase all drawn pixels of a given label.
- Restore an erased label.
Version >=0.1.0 works for napari version >= 0.5.5
Version <0.1.0 should work for napari version < 0.4.19
Usage
Start the plugin Plugins > Annotator (Annotator).
The plugin will list available labels once a labels layer is selected and labels drawn.
Color shuffling for labels will not work, since the plugin sets the color mode of the layer to direct.
But you can always change the color of individual labels, using the color picker.
Known limitations
- Locating / moving to the center of a label only works on 2D/3D label layers, i.e.:
- single- / multi-channel 2D label layers.
- single-channel 3D label layers (the third dimension being either Z or T).
- (Theoretical) maximum of 20'000 labels supported.
- Restoring an erased labels is lost after switching between layers.
Installation
You can install napari-annotator via pip:
pip install napari-annotator
To install latest development version :
pip install git+https://github.com/loicsauteur/napari-annotator.git
Contributing
Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.
License
Distributed under the terms of the BSD-3 license, "napari-annotator" is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description. Or open a thread on forum.image.sc with a detailed description and a @loicsauteur tag.
Metadata
Release files for napari-annotator 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| napari_annotator-0.1.1.tar.gz | 237.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| napari_annotator-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 253.3 kB
Release files / napari_annotator-0.1.1.tar.gz
| Download URL | napari_annotator-0.1.1.tar.gz |
|---|---|
| Size | 237.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
897ac292682469a2c4eb15af393f3950df8151e53a30e74e2f4fd54711da8175
|
|
BLAKE2b-256 checksum How to use checksums |
ae8da8f6fed4d1112d6c5d6450332e83f48d279dca026ac37cd0ef0cc939694f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / napari_annotator-0.1.1-py3-none-any.whl
| Download URL | napari_annotator-0.1.1-py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93b80d36d5b6e17939dd1e86e1729091c3abf110dafdf48d246c33419989dbad
|
|
BLAKE2b-256 checksum How to use checksums |
138c8d0c88c143177f5139d3577ff995b356520f9ca0acf947b35b40102a5baf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Security for napari-annotator 0.1.1
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.