Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
spectral_data.h File Reference
#include <array>
#include <cstddef>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  ph
 The root for all renderer implementations.
 
namespace  ph::math
 Math functions and utilities.
 
namespace  ph::math::spectral_data
 

Typedefs

using ph::math::spectral_data::ArrayXYZCMF = std::array<double, 471>
 
using ph::math::spectral_data::ArrayD65 = std::array<double, 531>
 
using ph::math::spectral_data::ArraySmits = std::array<double, 40>
 

Functions

const ArrayXYZCMFph::math::spectral_data::XYZ_CMF_CIE_1931_2_degree_wavelengths_nm ()
 
const ArrayXYZCMFph::math::spectral_data::XYZ_CMF_CIE_1931_2_degree_X ()
 
const ArrayXYZCMFph::math::spectral_data::XYZ_CMF_CIE_1931_2_degree_Y ()
 
const ArrayXYZCMFph::math::spectral_data::XYZ_CMF_CIE_1931_2_degree_Z ()
 
const ArrayD65ph::math::spectral_data::CIE_D65_wavelengths_nm ()
 
const ArrayD65ph::math::spectral_data::CIE_D65_values ()
 
const ArraySmitsph::math::spectral_data::smits_linear_sRGB_to_spectrum_E_wavelengths_nm ()
 
const ArraySmitsph::math::spectral_data::smits_linear_sRGB_to_spectrum_E_white ()
 
const ArraySmitsph::math::spectral_data::smits_linear_sRGB_to_spectrum_E_cyan ()
 
const ArraySmitsph::math::spectral_data::smits_linear_sRGB_to_spectrum_E_magenta ()
 
const ArraySmitsph::math::spectral_data::smits_linear_sRGB_to_spectrum_E_yellow ()
 
const ArraySmitsph::math::spectral_data::smits_linear_sRGB_to_spectrum_E_red ()
 
const ArraySmitsph::math::spectral_data::smits_linear_sRGB_to_spectrum_E_green ()
 
const ArraySmitsph::math::spectral_data::smits_linear_sRGB_to_spectrum_E_blue ()
 

Detailed Description

Various spectral dataset are available here. Note that many dataset are provided as functions rather than directly in the form of arrays. It is done in this way so that how the data is stored is opaque to the users. The data, under the hood, may be hard-coded directly in the source, lazily loaded from disk, or generated on-demand.