Hyperspectral imagery (HSI) preprocessing utilities for Machine Learning applications
Project description
mvos_hsi
MVOS Hyperspectral Imaging Utilities
Python package for calibration, clipping, and augmentation of hyperspectral leaf images, ported from MATLAB scripts.
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
Clone this repository and install in editable mode:
conda activate hyperspectral
pip install -e .
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.1.0.tar.gz.
File metadata
- Download URL: mvos_hsi-0.1.0.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bd45adf93d1521b56f1ff8c7122bb631f101edf1022e195a0bfc1d930fb634a
|
|
| MD5 |
098f415bc7ed8446ba6ea79732f561a1
|
|
| BLAKE2b-256 |
bb61992203a9a918f503a71c69ece6efaf0f0bdcf3c80286effef9b92221405d
|
File details
Details for the file mvos_hsi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mvos_hsi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.0 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 |
067d58dbbb7794eaedbe4353e0637cb58fbdd6b5e5f632a1f3055f74e2358fbe
|
|
| MD5 |
04cdecf1382b93e7f54e51b098ce9cca
|
|
| BLAKE2b-256 |
3edfcd6ab00eaa8dbc3a2661ef81211b57aa0cd875423a40f0af8c586945ea2f
|