Class representing the spectral library.
More...
#include <SpectralLibrary.h>
Class representing the spectral library.
◆ SpectralLibrary()
SpectralLibrary::SpectralLibrary |
( |
float |
wavelength_m, |
|
|
std::string |
spectra |
|
) |
| |
Spectral library constructor.
- Parameters
-
wavelength_m | Wavelength in meters \(w_{m}\) |
spectra | Path to spectra file |
◆ interpolateReflectance()
float SpectralLibrary::interpolateReflectance |
( |
float |
w0, |
|
|
float |
w1, |
|
|
float |
r0, |
|
|
float |
r1 |
|
) |
| |
|
private |
Reflectance interpolation function.
\[ \Delta_{w} = w_{1} - w_{0} \\ s = w_{um} - w_{0} \\ \Delta_{r} = r_{1} - r_{0} \\ r = r_{0} + \frac{s \Delta_{r}}{\Delta_{w}} \]
- Returns
- Interpolated reflectance
◆ readFileAster()
void SpectralLibrary::readFileAster |
( |
boost::filesystem::path |
path | ) |
|
|
private |
◆ readReflectances()
void SpectralLibrary::readReflectances |
( |
| ) |
|
◆ setReflectances()
void SpectralLibrary::setReflectances |
( |
Scene * |
scene | ) |
|
Fill scene materials reflectance with available spectra data.
- Parameters
-
scene | Scene with materials which reflectance must be setted |
◆ wavelength_um
float SpectralLibrary::wavelength_um = 0 |
|
private |
Wavelength.
\[ w_{um} = w_{m} \cdot 10^{6} \]
The documentation for this class was generated from the following files: