Crates.io | rgb2spec |
lib.rs | rgb2spec |
version | 0.1.1 |
source | src |
created_at | 2022-11-02 20:35:50.357436 |
updated_at | 2022-12-10 15:05:02.687169 |
description | Converts RGB colors to reflectance spectra |
homepage | |
repository | https://github.com/nbvdkamp/rgb2spec-rs |
max_upload_size | |
id | 703733 |
size | 80,452 |
This crate is a port of rgb2spec, an implementation of the paper "A Low-Dimensional Function Space for Efficient Spectral Upsampling" by Wenzel Jakob and Johannes Hanika.
It can be used to convert RGB colors in various color spaces to coefficent representations of reflectance spectra. These spectra can then be evaluated for wavelengths in the visible spectrum.
See the crate documentation or examples/
for example usages.
The crate also includes a command line program that can be used to compute a model and save it to a file. Use cargo run
in the crate's root to execute it.