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 Functionality

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

pip install openpyxl

Or install everything together:

pip install napari-label-manager openpyxl

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.1.tar.gz (25.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.1-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: napari_label_manager-0.1.1.tar.gz
  • Upload date:
  • Size: 25.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.1.tar.gz
Algorithm Hash digest
SHA256 04ed652b06cf1eeeaa36eff1e7e8d13e85d34e708095690b430fe8f2531e0f48
MD5 6230e5c8556832a21ae87566e5f13dca
BLAKE2b-256 526d46531ef6a3bb8377c8fcd3ba49f1b0781d7d755601c865984498be2bbd7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for napari_label_manager-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 609d1616eedde24d9fa3cd0cc7d2596167167eca4adca0321854b88043ef98e3
MD5 a280b8cd111a666efd22b1c883c4b7b6
BLAKE2b-256 6335d0ff80adf72e73c6cddfb328bc30cf15fd332bf3ab1e0ae1f3229dc96471

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