Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
spectral_data.h
Go to the documentation of this file.
1#pragma once
2
10#include <array>
11#include <cstddef>
12#include <vector>
13
15{
16
17// XYZ color matching functions for CIE 1931 2-degree standard.
18
19using ArrayXYZCMF = std::array<double, 471>;
20
25
26// CIE standard D65 illuminant spectrum.
27
28using ArrayD65 = std::array<double, 531>;
29
32
33// Data for Smits' RGB to spectrum conversion algorithm.
34// The conversion result will resembles a standard illuminant E's spectrum
35// when linear sRGB value reaches its white point (1, 1, 1).
36
37using ArraySmits = std::array<double, 40>;
38
47
48}// end namespace ph::math::spectral_data
Definition spectral_data.cpp:4
const ArrayD65 & CIE_D65_wavelengths_nm()
Definition spectral_data.cpp:771
const ArraySmits & smits_linear_sRGB_to_spectrum_E_blue()
Definition spectral_data.cpp:816
const ArrayXYZCMF & XYZ_CMF_CIE_1931_2_degree_X()
Definition spectral_data.cpp:756
const ArrayXYZCMF & XYZ_CMF_CIE_1931_2_degree_Z()
Definition spectral_data.cpp:766
const ArraySmits & smits_linear_sRGB_to_spectrum_E_red()
Definition spectral_data.cpp:806
const ArraySmits & smits_linear_sRGB_to_spectrum_E_cyan()
Definition spectral_data.cpp:791
std::array< double, 471 > ArrayXYZCMF
Definition spectral_data.h:19
const ArrayXYZCMF & XYZ_CMF_CIE_1931_2_degree_wavelengths_nm()
Definition spectral_data.cpp:751
const ArraySmits & smits_linear_sRGB_to_spectrum_E_magenta()
Definition spectral_data.cpp:796
const ArraySmits & smits_linear_sRGB_to_spectrum_E_white()
Definition spectral_data.cpp:786
const ArraySmits & smits_linear_sRGB_to_spectrum_E_green()
Definition spectral_data.cpp:811
const ArrayXYZCMF & XYZ_CMF_CIE_1931_2_degree_Y()
Definition spectral_data.cpp:761
std::array< double, 531 > ArrayD65
Definition spectral_data.h:28
std::array< double, 40 > ArraySmits
Definition spectral_data.h:37
const ArrayD65 & CIE_D65_values()
Definition spectral_data.cpp:776
const ArraySmits & smits_linear_sRGB_to_spectrum_E_yellow()
Definition spectral_data.cpp:801
const ArraySmits & smits_linear_sRGB_to_spectrum_E_wavelengths_nm()
Definition spectral_data.cpp:781