Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 410 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 410 Bytes

Color rendering of spectra

This module can convert spectra to RGB. It is inspired by John Walkers specrend.c and the respective python version of Andrew Hutchins, but is completely rewritten.

Usage:

spectralimage = ... #some spectral image
spectralbands = ... #the corresponding wavelengths
converter = SpecRGBConverter(spectralbands)
rgbimage = converter.spectrum_to_rgb(spectralimage)