Skip to main content

HSI Preprocessing Toolkit

PyPI - Version PyPI - Downloads PyPI - Python Version GitHub Created At GitHub License

HSI Preprocessing Toolkit (HPT, formerly HDR2MAT) is a hyperspectral image preprocessing toolset that:

  1. Read the raw data directly from HSI cameras, and convert it into .mat file
  2. Read the .mat file
  3. Preview HSI and convert it to RGB .png file
  4. Crop, rotate, transform the HSI and preview in realtime
  5. Select spectrals of interest visually and save them into a .mat file
  6. Mix multiple HSI images with layers.
  7. Generate Spectral Profiles for visualization.
  8. Some other utils

Installation

Prerequisites

  1. A Chromium-based browser
  2. A modern OS

Manual

  1. Download hpt.cmd from GitHub release
  2. Double click the hpt.cmd file.

TIPS: Make sure you have internet access during the first start

Install with uv

  1. Install uv directly or with pip: pip install uv
  2. Install HPT: uv tool install hsi-preprocessing-toolkit
  3. Start HPT: hsi_preprocessing_toolkit

Install with pip

  1. Install HPT: pip install hsi-preprocessing-toolkit
  2. Start HPT: hsi_preprocessing_toolkit

TIPS: It's not recommend to install CLI tools directly with pip, please use uv tool or pipx to install python applications in isolated environments.

Usage

See help by running:

hsi_preprocessing_toolkit --help

Credit

  1. uv for providing a new reliable solution for Python application distribution.
  2. gradio for modern Python Data Science UI
  3. rasterio for remote sensing data reading
  4. scipy, numpy, matplotlib and einops
  5. For more projects, see pyproject.toml

License

Copyright (C) 2025  songyz2019

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

Metadata

Release files for hsi-preprocessing-toolkit 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hsi-preprocessing-toolkit 2.3.0
File Size Uploaded Provenance Actions
hsi_preprocessing_toolkit-2.3.0.tar.gz 199.2 kB Without provenance Details for hsi_preprocessing_toolkit-2.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hsi-preprocessing-toolkit 2.3.0
File Interpreter ABI Platform Actions
hsi_preprocessing_toolkit-2.3.0-py3-none-any.whl Python 3 none any Details for hsi_preprocessing_toolkit-2.3.0-py3-none-any.whl

Total release size: 401.5 kB

Release files / hsi_preprocessing_toolkit-2.3.0.tar.gz

Download URL hsi_preprocessing_toolkit-2.3.0.tar.gz
Size 199.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e1c4cf573248fa61abf1b3db2c25af705630552518b9edf144dfb405a308885b
BLAKE2b-256 checksum
How to use checksums
88c37e8de0fd7fa2eac9f125532c2602fdb593612a117c959a5f8af1c6e9f5c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / hsi_preprocessing_toolkit-2.3.0-py3-none-any.whl

Download URL hsi_preprocessing_toolkit-2.3.0-py3-none-any.whl
Size 202.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da666d34ee40048e342480d83d981b9a3f491c40fb5cf5be1888749fff2ae19f
BLAKE2b-256 checksum
How to use checksums
57a57e34d6839d24c3eb4cacf3321bed2eeeaf47f4a81b995248950887debcc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for hsi-preprocessing-toolkit 2.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page