Skip to main content

A plugin for management of label colormap generation and opacity control

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

napari_label_manager-0.1.3.tar.gz (26.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

napari_label_manager-0.1.3-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file napari_label_manager-0.1.3.tar.gz.

File metadata

  • Download URL: napari_label_manager-0.1.3.tar.gz
  • Upload date:
  • Size: 26.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for napari_label_manager-0.1.3.tar.gz
Algorithm Hash digest
SHA256 66fb6cd0a2c65dec66f43262ce2f7de675d77d34b2696af4f20999912d6ccb45
MD5 36152482a008b0ce52356faae4a8c86d
BLAKE2b-256 c5ac0b9dc2463cb9ad59895c4e28202ced6782ece46bd4d03d7ca6aa6e556696

See more details on using hashes here.

File details

Details for the file napari_label_manager-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_label_manager-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 36488579a224249b4b1e64283d49b02147ebb36447d0e4fee2f4d6242b2a99f8
MD5 a9c39bf2b19cf9227431181116c52729
BLAKE2b-256 67eced1626aae12d903b9d127b01698d73573cbc12b31602b0bdf0ec1665be46

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page