Skip to main content

A plugin to process hyperspectral images of sediments

Project description

napari-sediment

License BSD-3 PyPI Python Version tests codecov napari hub

This napari plugin is designed to hyper-spectral images of sediment cores. It is composed of three interfaces allowing the user to:

  • import HDR images
  • normalize the images using white and dark references
  • mask unwanted regions
  • perform spectral dimensionality reduction via minimum noise fraction analysis
  • perform spatial dimensionality reduction based on pixel purity indices
  • identify representative end-members by clustering pure pixels
  • select relevant regions in spectra to compute absorption indices and create absorption maps

Pre-processing: Sediment widget

The sediment widget allows the user to import an HDR image and to normalize it using white and dark references. The widget also allows the user to mask unwanted regions of the images.

Documentation

You can find a detailed documentation here.

Installation

Create a conda environment and activate it. If you don't have conda installed you can for example install miniforge.

conda create -n sediment python=3.12 napari pyqt -c conda-forge
conda activate sediment

Then you can install napari-sediment use:

pip install napari-sediment

Or you can install the latest development version directly from the GitHub repository:

pip install git+https://github.com/guiwitz/napari-sediment.git

On Windows, there is sometimes an issue installing PyTorch (needed for pixel classification) leading to an error about loading a dependency (typically fbgemm.dll). In that case we recommend the following:

conda create -n sediment python=3.12 napari pyqt -c conda-forge
conda activate sediment
pip install napari-sediment
pip uninstall torch
conda install -c conda-forge pytorch llvm-openmp

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

Authors

This plugin has been developed by Guillaume Witz at the Data Science Lab of the University of Bern in collaboration with Petra Zahajská, Institue of Geography of the University of Bern. Funding for development was provided by Prof. Martin Grosjean, Institute of Geography of the University of Bern.

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_sediment-0.5.2.tar.gz (24.5 MB view details)

Uploaded Source

Built Distribution

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

napari_sediment-0.5.2-py3-none-any.whl (119.4 kB view details)

Uploaded Python 3

File details

Details for the file napari_sediment-0.5.2.tar.gz.

File metadata

  • Download URL: napari_sediment-0.5.2.tar.gz
  • Upload date:
  • Size: 24.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for napari_sediment-0.5.2.tar.gz
Algorithm Hash digest
SHA256 3e86b0b966e5fabe22b35fc82b8eef177f91eb6cb4aa63689da1170f5774586d
MD5 5fe5196fbeb1f976fbba9abe6f17ff7e
BLAKE2b-256 e00d9d95352aaa81c42fea01b0510224f9f0f50ac3abb3d23f8f3d376d49083c

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_sediment-0.5.2.tar.gz:

Publisher: test_and_deploy.yml on guiwitz/napari-sediment

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file napari_sediment-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: napari_sediment-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 119.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for napari_sediment-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0eeff651cb3d224af2edceb8245e1eec56143a3e74eb6e55e95206b0cea4f651
MD5 5f7710f3a2324d6f6ffc0993ed7c85ae
BLAKE2b-256 93b05a30958cd13d5a770f1acd41147e82bee74d10b9c204df20517ba0f13467

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_sediment-0.5.2-py3-none-any.whl:

Publisher: test_and_deploy.yml on guiwitz/napari-sediment

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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