hypso.rgb.hsi2rgb#
HSI-cube-to-RGB rendering via CIE color matching functions (Magnusson et al., IGARSS 2020 - see the docstring’s citation). No in-package callers yet; kept as the comparison for the planned HYPSO-2 RGB camera support: an RGB rendered from the HSI cube to hold up against the RGB camera image. The D_illuminants.mat data file is in this package’s data/ directory.
from hypso.rgb import HSI2RGB rgb = HSI2RGB(product.wavelengths, product.cube.values)
Functions#
|
Calculate a colore accurate RGB image with HSI values. Original function used for the paper |
Module Contents#
- hypso.rgb.hsi2rgb.HSI2RGB(wY, HSI, d=65, threshold=0.002)[source]#
Calculate a colore accurate RGB image with HSI values. Original function used for the paper “Creating RGB Images from Hyperspectral Images Using a Color Matching Function” by M. Magnusson, J. Sigurdsson, S. E. Armansson, M. O. Ulfarsson, H. Deborah and J. R. Sveinsson,
If you use this method, please cite the following paper: @INPROCEEDINGS{hsi2rgb, author={M. {Magnusson} and J. {Sigurdsson} and S. E. {Armansson} and M. O. {Ulfarsson} and H. {Deborah} and J. R. {Sveinsson}}, booktitle={IEEE International Geoscience and Remote Sensing Symposium}, title={Creating {RGB} Images from Hyperspectral Images using a Color Matching Function}, year={2020}, volume={}, number={}, pages={}}
Paper is available at https://www.researchgate.net/profile/Jakob_Sigurdsson
- Parameters:
wY – Wavelengths in nm
HSI – Hyperspectral image, a (lines, samples, bands) array
d (Literal[50, 55, 65, 75]) – Determines the illuminant used, if in doubt use d65. Values of 50, 55, 65, 75
threshold – True if RGB thesholding should be done to increase contrast
- Returns:
RGB Image array
- Return type: