Converts multi-spectrum cube to RGB image
Project description
spectra2rgb
Converting multi-spectra numpy array to RGB format
Usage
from spectra2rgb import SpectralData
spectral_data = SpectralData(multi_spectra_data, axis=0)
rgb_data = spectral_data.to_rgb()
Where:
multi_spectra_datais of shape (48, 100, 250) and first dimension represents the spectral bands (in this case there are 48 spectra bands)rgb_datawill be of shape (3, 100, 250) and will have values between 0 and 255- 0th index in spectral dimension will be considered as the lowest wavelength (violet) and last index will be considered as longest wavelength (red)
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
spectra2rgb-1.0.0.tar.gz
(3.8 kB
view details)
File details
Details for the file spectra2rgb-1.0.0.tar.gz.
File metadata
- Download URL: spectra2rgb-1.0.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ddc9bab7aa6a6b706822bdb2e6a4d134cf75bab8a3719a51d678f8ac7a87aa6
|
|
| MD5 |
340dd153275c94282f332e360938236e
|
|
| BLAKE2b-256 |
1e0e4952e4feff935b53866e52d644c0eb59fc069412df34512c980ac98369ff
|