hsi-wizard: A magical open-source Python package for medical hyperspectral imaging applications

hsi-wizard: A magical open-source Python package for medical hyperspectral imaging applications - Published in JOSS (2025)

https://github.com/bluespacepotato/hsi-wizard

Science Score: 93.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

hsi hyperspectral hyperspectral-imaging python python3
Last synced: 3 months ago · JSON representation

Repository

Straightforward environment for hyperspectral analysis in Python.

Basic Info
  • Host: GitHub
  • Owner: BlueSpacePotato
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 15 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 3
  • Releases: 2
Topics
hsi hyperspectral hyperspectral-imaging python python3
Created over 2 years ago · Last pushed 4 months ago
Metadata Files
Readme License

README.md

Documentation Status codecov Socket Badge PyPI - Downloads PyPI Downloads status

HSI Wizard

See Beyond the Visible: The Magic of Hyperspectral Imaging for Medical & Bioinformatics Applications

hsi_wizard_logo

Introduction

Welcome to the hsi-wizard package! Designed primarily for medical hyperspectral imaging and bioinformatics workflows, this Python package provides a straightforward environment for hyperspectral imaging (HSI) analysis, supporting everything from basic spectral analysis to advanced machine learning and AI methods. Whether you're working with raw sensor data or pre-processed datasets, hsi-wizard offers a suite of tools to simplify and enhance your analysis workflow.

If you're new here, the best place to start is the documentation, where you'll find detailed instructions on how to begin.

Features

  • DataCube Class for managing and processing HSI data
  • Spectral plotting and visualization
  • Clustering and spectral analytics
  • Tools for merging and processing HSI data
  • Data loaders for various file formats (e.g., NRRD, Pickle, TDMS, and XLSX)
  • Decorators for method tracking, input validation, and execution time logging

Geospatial Limitations

This package does not track or process geographical coordinates. If you require full remote-sensing or GIS integration, you may need complementary tools. hsi-wizard focuses on medical and lab-based spectral analysis, so spatial georeferencing is restricted.

Comparison with Existing Tools

| Attribute | HSI-Wizard | PySptools | HyDe | Spectral Python (SPy) | ENVI | | -------------------- | ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | | Category | Medical Imaging | Geospatial & Research Spectral Analysis | Preprocessing & Denoising | General-Purpose Data I/O & Basic Handling | Commercial All-rounder | | Key Features | End-to-end medical pipeline, DataCube, Merge & analytics | Endmember extraction, Spectral unmixing, Low-rank wavelet & DNN denoising, Energy-efficient implementations | Read/display/manipulate HSI files, Bip/Bil/Bsq interleaves, Basic classification routines | Advanced spectral processing & classification, Full GUI & Python API, ArcGIS integration | | | File Support | ENVI (.hdr/.img), Images, CSV, FSM, NRRD, Pickle (.pkl), TDMS, XLSX | ENVI (.hdr/.img) via Spectral Python integration | None built-in (operates on NumPy arrays from user’s loader) | ENVI (.hdr/.img), BIL, BIP, BSQ interleaves | ENVI (.hdr/.img), GeoTIFF, HDF, ASCII – broad commercial support | | Licensing / Cost | Open-source (MIT) | Open-source (MIT) | Open-source (BSD-3-Clause) | Open-source (BSD-3) | Proprietary, paid |


Installation

Requirements

Via pip

You can install the package via pip:

bash pip install hsi-wizard

Compile from Source

Alternatively, you can compile HSI Wizard from source:

bash python -m pip install -U pip setuptools wheel # Install/update build tools git clone https://github.com/BlueSpacePotato/hsi-wizard # Clone the repository cd hsi-wizard # Navigate into the directory python -m venv .env # Create a virtual environment source .env/bin/activate # Activate the environment pip install -e . # Install in editable mode pip install wheel # Install wheel pip install --no-build-isolation --editable . # Compile and install hsi-wizard


Usage

After installing the package, you can import the DataCube, read function, and plotter for quick HSI data analysis:

```python3 import wizard

Load an HSI datacube from a file

dc = wizard.read('pathtofile')

process DataCube

dc.resize(xnew=500, ynew=500) dc.remove_background()

Visualize the datacube

wizard.plotter(dc) ```

For more examples visist the documentation.


Contributing

We welcome contributions from the medical imaging and bioinformatics communities! To make the collaboration smooth and efficient, please follow the guidelines below:

Reporting Issues

If you encounter bugs, unexpected behavior, or have feature requests, please:

  1. Search existing issues to see if your problem or idea has already been reported.
  2. Open a new issue with a clear title and description:
    1. Steps to reproduce the problem
    2. Expected vs. actual behavior
    3. Version of hsi-wizard, Python, and operating system
  3. Label the issue appropriately (e.g., bug, feature request, documentation).

Seeking Support

For usage questions, help with examples, or general discussion: - GitHub Discussions: Post your questions under the Support category in our Discussions board.

Contributing Code

If you have ideas or fixes, we’d love your help! Just fork the repo, create your branch, and make your changes. When you’re ready, push your branch up and open a Pull Request against main. We’ll review it and merge it in!

Owner

  • Login: BlueSpacePotato
  • Kind: user

JOSS Publication

hsi-wizard: A magical open-source Python package for medical hyperspectral imaging applications
Published
September 12, 2025
Volume 10, Issue 113, Page 8207
Authors
Felix Wühler ORCID
CeMOS Research and Transfer Center, University of Applied Science Mannheim, Germany
Matthias Rädle ORCID
CeMOS Research and Transfer Center, University of Applied Science Mannheim, Germany
Editor
Charlotte Soneson ORCID
Tags
hyperspectral imaging DataCubes

GitHub Events

Total
  • Create event: 41
  • Release event: 1
  • Issues event: 25
  • Delete event: 11
  • Issue comment event: 23
  • Push event: 107
  • Pull request event: 23
Last Year
  • Create event: 41
  • Release event: 1
  • Issues event: 25
  • Delete event: 11
  • Issue comment event: 23
  • Push event: 107
  • Pull request event: 23

Committers

Last synced: 3 months ago

All Time
  • Total Commits: 195
  • Total Committers: 2
  • Avg Commits per committer: 97.5
  • Development Distribution Score (DDS): 0.369
Past Year
  • Commits: 111
  • Committers: 2
  • Avg Commits per committer: 55.5
  • Development Distribution Score (DDS): 0.405
Top Committers
Name Email Commits
Felix Wuehler f****r@h****e 123
BlueSpacePotato 3****o@u****m 72
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 20
  • Total pull requests: 31
  • Average time to close issues: 12 days
  • Average time to close pull requests: 3 minutes
  • Total issue authors: 4
  • Total pull request authors: 1
  • Average comments per issue: 1.55
  • Average comments per pull request: 0.1
  • Merged pull requests: 28
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 19
  • Pull requests: 29
  • Average time to close issues: 11 days
  • Average time to close pull requests: 3 minutes
  • Issue authors: 3
  • Pull request authors: 1
  • Average comments per issue: 1.63
  • Average comments per pull request: 0.1
  • Merged pull requests: 27
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • mh-skjelvareid (15)
  • tomelse (6)
  • BlueSpacePotato (2)
  • ashishbijlani (1)
Pull Request Authors
  • BlueSpacePotato (52)
Top Labels
Issue Labels
documentation (2) feature request (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 199 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 47
  • Total maintainers: 1
pypi.org: hsi-wizard

See Beyond the Visible: The Magic of Hyperspectral Imaging

  • Versions: 47
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 199 Last month
Rankings
Dependent packages count: 10.0%
Average: 38.0%
Dependent repos count: 66.0%
Maintainers (1)
Last synced: 3 months ago

Dependencies

.github/workflows/main.yaml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
docs/requirements.txt pypi
  • matplotlib ==3.8.2
  • numpy ==1.26.3
  • opencv-python ==4.9.0.80
  • rich ==13.7.0
pyproject.toml pypi