A toolbox for annotating objects one by one in nD
Project description
napari-nD-annotator
A toolbox for annotating objects one by one in nD
This plugin contains some tools to make 2D/3D, but basically any dimensional annotation easier. Main features:
- nD bounding box layer
- object list from bounding boxes
- visualizing selected objects from different projections
- auto-filling labels
- label slice interpolation
The main idea is to create bounding boxes around objects we want to annotate, crop them, and annotate them one by one. This has mainly two advantages when visualizing in 3D:
- We don't have to load the whole data into memory
- The surrounding objects won't occlude the annotated ones, making it easier to check the annotation.
This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.
Installation
You can install napari-nD-annotator
via pip:
pip install napari-nD-annotator
The plugin is also available in napari-hub, to install it directly from napari, please refer to plugin installation instructions at the official napari website.
Usage
You can start napari with the plugin's widgets already opened as:
napari -w napari-nD-annotator "Object List" "Annotation Toolbox"
The proposed pipeline goes as follows:
- Create a bounding box layer
- Select data parts using the bounding boxes
- Select an object from the object list
- Annotate the object
- Repeat from 3.
Example
import napari
from skimage.data import cells3d
import numpy as np
viewer = napari.Viewer()
nuclei = cells3d()[:, 1]
viewer.add_image(nuclei, colormap="magma")
viewer.add_labels(np.zeros_like(nuclei))
napari.run()
License
Distributed under the terms of the BSD-3 license, "napari-nD-annotator" is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
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-nD-annotator-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d641773735cf8d78dcc4b96bfbad306b14795b0d2e6c708bcd4fa4fc1d23373 |
|
MD5 | b6eb79728c43a4381f848cb2fc1a966f |
|
BLAKE2b-256 | 5399f3e70eb3101004149762b37a55e84475fb2eca678afb549493e03ef71df0 |
Hashes for napari_nD_annotator-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bb0414f7688a0bf426037e247569121106d35f44b5e353194c42f1c62eefcb7 |
|
MD5 | eabdf9b0fc601eaf53eb73b1979b0cd1 |
|
BLAKE2b-256 | 28f7d80228e95bcee6d59dfb4b2934029e389d24a3cbc9c352ba91b4d33c6424 |