Hyperspectral imagery (HSI) preprocessing utilities for Machine Learning applications
Project description
mvos_hsi
MVOS Hyperspectral Imaging Utilities
mvos_hsi is a Python package developed at the
Machine Vision and Optical Sensors (MVOS) Lab, South Dakota State University (SDSU)
for preprocessing and managing hyperspectral imaging (HSI) data.
The package provides a reproducible pipeline for:
- Calibrating raw hyperspectral cubes
- Clipping sample regions (e.g., leaves)
- Applying data augmentation
- Generating graphs for spectral comparisons
- Organizing outputs into clean, ML-ready datasets
It was originally designed for leaf-level agricultural experiments (e.g., nitrogen status in corn leaves) but is broadly applicable to other hyperspectral imaging tasks.
Features
-
Calibration
- Single image or batch folder calibration
- Dark and white reference correction
- Spectral binning & spatial binning options
- Outputs calibrated reflectance and fluorescence cubes
- Saves calibrated cubes as
.matfiles (*_R.mat,*_F.mat)
-
Clipping
- Detect leaves using vegetation indices:
- NDVI (Normalized Difference Vegetation Index)
- CI-RedEdge (Chlorophyll Index Red-Edge)
- GCI (Green Chlorophyll Index)
- Thresholding via Otsu (auto) or manual (e.g., NDVI > 0.45)
- Flexible cropping:
- Square windows (fixed size, e.g., 30×30 pixels)
- Tight bounding boxes fit to each leaf
- Saves clipped cubes as ENVI files (
.hdr+.img) inclipped_hypercubes/
- Detect leaves using vegetation indices:
-
Augmentation
- Apply data augmentation to calibrated or clipped cubes
- Options:
- Per image (single
.mator.hdr) - Per folder
- Per class (each subfolder = class label)
- Per image (single
- User-defined number of augmentations
- Saves augmented cubes in
augmented_hypercubes/
Installation
From PyPI
pip install mvos_hsi
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mvos_hsi-0.2.1.tar.gz.
File metadata
- Download URL: mvos_hsi-0.2.1.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1504e30ec7e39686ad5a28072fe74cd2a165a402428704abe3e6fc38d88571ef
|
|
| MD5 |
be1599fba11398e20a687cfd31b8ddc0
|
|
| BLAKE2b-256 |
375fc5b270c4d65913e88470cd1d56e7a665fe156fa44e9ccd585c9fcbc5c5a6
|
File details
Details for the file mvos_hsi-0.2.1-py3-none-any.whl.
File metadata
- Download URL: mvos_hsi-0.2.1-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd48a49983b97c67a5133fc82188733027e3725ee3388c4009523512c38d2550
|
|
| MD5 |
28f96649181ab0ed3c6747fbdb8d23d2
|
|
| BLAKE2b-256 |
8979e786262e390ec637542dc4dcad0dfdc09592c9783a51a14dac9c7b433cc5
|