Skip to content

Wenlab/napari-label-manager

Repository files navigation

napari-label-manager

License BSD-3 PyPI Python Version napari hub npe2 Copier


This napari plugin was generated with copier using the napari-plugin-template.

Description

This is a plugin for management of label colormap generation and opacity control.

  • Select your label layer from the dropdown
  • Generate a new colormap or use existing colors
  • Specify target label IDs (e.g., "1-5,10,15-20")
  • Adjust opacity for selected labels and background
  • Apply changes to visualize your selection

Features

Label Management

  • Batch management of label colors and opacity
  • Random colormap generation with customizable seeds
  • Support for label ID ranges and individual selections
  • Quick presets for common label selections (first 10, even/odd IDs, all current)

Label Annotation

  • NEW: Excel-like annotation table for labeling digital IDs
  • Fill ranges of label IDs automatically
  • Load current layer's labels into annotation table
  • Add custom annotations/descriptions for each label
  • Export annotations to Excel format (.xlsx)

Performance Optimizations

  • Memory-efficient processing for large datasets
  • Time-series optimization (processes current slice only)
  • Smart sampling strategies for extremely large arrays
  • Background computation to maintain UI responsiveness

Installation

You can install napari-label-manager via pip:

pip install napari-label-manager

If napari is not already installed, you can install napari-label-manager with napari and Qt via:

pip install "napari-label-manager[all]"

For Excel Export and Load Functionality

To enable Excel export features for label annotations, install the optional and pandas dependency:

pip install openpyxl pandas

Or install everything together:

pip install napari-label-manager openpyxl pandas

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-label-manager" is free and open source software

Issues

If you encounter any problems, please [file an issue] along with a detailed description.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages