Skip to main content

HSI Preprocessing Toolkit

Project description

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

Usage

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.

Document

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/>.

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

hsi_preprocessing_toolkit-2.2.2.tar.gz (198.1 kB view details)

Uploaded Source

Built Distribution

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

hsi_preprocessing_toolkit-2.2.2-py3-none-any.whl (201.3 kB view details)

Uploaded Python 3

File details

Details for the file hsi_preprocessing_toolkit-2.2.2.tar.gz.

File metadata

  • Download URL: hsi_preprocessing_toolkit-2.2.2.tar.gz
  • Upload date:
  • Size: 198.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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}

File hashes

Hashes for hsi_preprocessing_toolkit-2.2.2.tar.gz
Algorithm Hash digest
SHA256 a9fcc8ea110cd953827ad9d938f5e19f9c172d213e5ebb78e2bce0919f3a3f5d
MD5 eca02f77a0bf8724196f465021990c09
BLAKE2b-256 484c9799d4ccc978c68468a80605cfbc423969134a8b169064c136c05b9f9b6a

See more details on using hashes here.

File details

Details for the file hsi_preprocessing_toolkit-2.2.2-py3-none-any.whl.

File metadata

  • Download URL: hsi_preprocessing_toolkit-2.2.2-py3-none-any.whl
  • Upload date:
  • Size: 201.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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}

File hashes

Hashes for hsi_preprocessing_toolkit-2.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 79854c2301c13f9408881c047b84991c08d9bcef7a5cd598725a78a0e54d5a04
MD5 2fbac1ae5ee755ec1512e0631babad5a
BLAKE2b-256 e2ff8fae4bd92d60de4c8990f7320670ad17010bf6d2c31b137c9960e17c4971

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