6#include <Common/assertion.h>
7#include <Common/config.h>
14template<EColorSpace COLOR_SPACE,
typename T, CSpectralSampleProps Props>
20template<EColorSpace COLOR_SPACE,
typename T, CSpectralSampleProps Props>
23 return Props::NUM_SAMPLES;
26template<EColorSpace COLOR_SPACE,
typename T, CSpectralSampleProps Props>
29 return Props::MIN_WAVELENGTH_NM;
32template<EColorSpace COLOR_SPACE,
typename T, CSpectralSampleProps Props>
35 return Props::MAX_WAVELENGTH_NM;
38template<EColorSpace COLOR_SPACE,
typename T, CSpectralSampleProps Props>
45template<EColorSpace COLOR_SPACE,
typename T, CSpectralSampleProps Props>
52template<EColorSpace COLOR_SPACE,
typename T, CSpectralSampleProps Props>
55 const U*
const wavelengthsNM,
56 const U*
const values,
57 const std::size_t numPoints)
62 wavelengthsNM, values, numPoints));
Definition TSampledSpectrum.h:14
static consteval std::size_t minWavelengthNM() noexcept
Definition TSampledSpectrum.ipp:27
static consteval std::size_t numSamples() noexcept
Definition TSampledSpectrum.ipp:21
TSampledSpectrum()=default
static TSampledSpectrum makeResampled(const U *wavelengthsNM, const U *values, std::size_t numPoints)
static constexpr T sampleInterval() noexcept
Definition TSampledSpectrum.ipp:39
static constexpr std::pair< T, T > wavelengthRangeOf(std::size_t sampleIndex) noexcept
Definition TSampledSpectrum.ipp:46
static consteval std::size_t maxWavelengthNM() noexcept
Definition TSampledSpectrum.ipp:33
Derived & setColorValues(const TRawColorValues< T, N > &values)
Set and get raw color values directly.
Definition TSpectrumBase.ipp:46
Math functions and utilities.
Definition TransformInfo.h:10
TSpectralSampleValues< T, SampleProps > resample_spectral_samples(const U *wavelengthsNM, const U *values, std::size_t numPoints, ESpectralResample algorithm=ESpectralResample::Default)
Definition spectral_samples.ipp:68
constexpr std::pair< T, T > wavelength_range_of(std::size_t sampleIndex) noexcept
Definition spectral_samples.ipp:26
constexpr T wavelength_interval_of() noexcept
Definition spectral_samples.ipp:19