hypergas.hsi2rgb module
Generate RGB image using hyperspectral satellite data.
- hypergas.hsi2rgb.Hsi2rgb(wY, HSI, ydim, xdim, d, threshold)[source]
Generate RGB from HSI image data using the HSI2RGB method.
- Parameters:
wY (
numpy.ndarray) – 1D Band wavelengths (nm).HSI (
numpy.ndarray) – 2D Radiance matrix (npixels, nbands), e.g.,da.stack(z=['y', 'x']).transpose(..., 'bands').ydim (int) – The y dimension size of image.
xdim (int) – The x dimension size of image.
d (int) – The number (50, 55, 65, or 75) used to determine the illuminant used, if in doubt use d65.
thresholdRGB (bool) –
Trueif thesholding should be done to increase contrast.
- Returns:
rgb (
numpy.ndarray) – dims: (ydim, xdim, 3), where the last dimension corresponds to the color channels (R, G, B).