A simple plugin to annotate cell centroids in 2D or 3D images
This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.
Easily annotate cell centroids in 2D/3D images. While annotating, every annotated point gets a random color to increase your focus and overview while annotating. Annotated points get a radius to make it easier to see which cells were already annotated when you are in a neighboring slice of its centroid.
You can install napari-cell-centroid-annotator
via pip:
pip install napari-cell-centroid-annotator
To install latest development version :
pip install git+https://github.com/tim-vdl/napari-cell-centroid-annotator.git
While strictly not required, it is recommended to install this plug-in into a virtual environment, like this:
conda create -y -n napari-env -c conda-forge python=3.9
conda activate napari-env
pip install napari-cell-centroid-annotator
Get started by importing a 2D/3D image, either by drag-and-drop into the viewer, or via the menu on top. Next, create a new or import an existing points layer.
Then, start the Centroid Annotation Widget from the Plug-in menu.
Afterwards, select the points layer in the widget that opened on the right and click "Run" to confirm to use this layer for centroid annotation.
Finally, you can start annotating by adding new points, or by editing the existing points.
To get an overview of all annotated points, be sure to have the points layer selected in the layer list and open the Points Table plug-in from the Plug-in menu. This plug-in opens a table with the face color and coordinates of every point. From the table, you can now select points in the viewer, and vice-versa. This can come in handy when you want to edit/remove some points.
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.
Distributed under the terms of the MIT license, "napari-cell-centroid-annotator" is free and open source software
If you encounter any problems, please file an issue along with a detailed description.