HSI calibration & utilities for MVOS workflows
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
mvos_hsi-0.2.0.tar.gz
(14.4 kB
view details)
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
mvos_hsi-0.2.0-py3-none-any.whl
(15.9 kB
view details)
File details
Details for the file mvos_hsi-0.2.0.tar.gz.
File metadata
- Download URL: mvos_hsi-0.2.0.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8197e45883496209cf75e3870a63ff0914cc66bcc3caaf7e4fb9b01f942deaf
|
|
| MD5 |
03fb4ae1bed95d51b49f4489c912be9f
|
|
| BLAKE2b-256 |
3ac126705ac3e3f43056b2fef5482fdff2b47bfe5a6f3196321875b8364ad092
|
File details
Details for the file mvos_hsi-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mvos_hsi-0.2.0-py3-none-any.whl
- Upload date:
- Size: 15.9 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 |
be0eb60e8ef2b955597ea99d3513857e2dc844636a21fbd98382ac3e42822f8f
|
|
| MD5 |
1826b35d11208b09d5c41bc11bb1ed8a
|
|
| BLAKE2b-256 |
bf56f43dfedb822b163a00dc621b67b3a5f7a4a4d72768febc5b95f1207374f9
|