Skip to main content

napari-3d-label-eraser

License GNU GPL v3.0 PyPI Python Version tests codecov napari hub

A simple tool to erase a selected label across an entire 3D volume in napari.

Overview

napari-3d-label-eraser provides a fast and convenient way to remove all voxels belonging to a given label in a 3D Labels layer.
This is useful for cleaning segmentation results, removing misdetected objects, or performing manual corrections in volumetric datasets.

The plugin adds a dock widget featuring:

  • a dropdown menu to select the target Labels layer,
  • a button to erase the currently selected label across the entire 3D volume,
  • optional usage instructions.

A keyboard shortcut (A) can also be used to trigger the erase operation directly from the viewer.

Features

  • Erase all voxels of the selected label throughout a 3D volume.
  • Dropdown to choose the active Labels layer.
  • Compatible with napari’s label picker (L key).
  • Optional keyboard shortcut (A) for quick editing.
  • Minimal, lightweight, and easy to integrate into existing workflows.

Installation

Install with pip:

pip install napari-3d-label-eraser

Or install from the napari plugin manager:

Plugins → Install/Uninstall Plugins

For development installation:

git clone https://github.com/koopa31/napari-3d-label-eraser.git
cd napari-3d-label-eraser
pip install -e .

Usage

  1. Load a Labels layer in napari.
  2. Open the plugin:
    Plugins → 3D Label Eraser → 3D Label Eraser
  3. In the widget:
    • Select your target Labels layer.
    • Choose the label to erase using the label picker (L key).
    • Click the button to erase that label across the full 3D volume.
  4. Alternatively, press A to erase the current label directly from the viewer (focus must be on the viewer).

Notes

  • The plugin operates only on Labels layers.
  • The erase action sets all voxels with the selected label to 0.
  • The A shortcut is registered automatically when the widget is opened.

Contributing

Issues, feature requests, and pull requests are welcome.

License

This project is released under the MIT License.

Metadata

Release files for napari-3d-label-eraser 0.1.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-3d-label-eraser 0.1.3
File Size Uploaded
napari_3d_label_eraser-0.1.3.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for napari-3d-label-eraser 0.1.3
File Interpreter ABI Platform
napari_3d_label_eraser-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 10.8 kB

Release files / napari_3d_label_eraser-0.1.3.tar.gz

Download URL napari_3d_label_eraser-0.1.3.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ca59d124253c012d5604ee567f4f226d00f4e4d9b6028e57ab7b69fd73fb90b2
BLAKE2b-256 checksum
How to use checksums
45c1e3b20b6375a755dda99ec3370017a46f9aae1fc222c57de700f9b73249fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Release files / napari_3d_label_eraser-0.1.3-py3-none-any.whl

Download URL napari_3d_label_eraser-0.1.3-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a5190f78fcdcc900ab37a6a2c6cadef4052dc0925b19a52b86698739cc36455
BLAKE2b-256 checksum
How to use checksums
77c31d2ef35be25e86e8d80f5a6ab64a2f52d1ce21b2923386e0b7e18f06fe15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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