#include <spectrum.h>
Definition at line 250 of file spectrum.h.
SampledSpectrum::SampledSpectrum | ( | float | v = 0.f |
) | [inline] |
Definition at line 253 of file spectrum.h.
References CoefficientSpectrum< nSpectralSamples >::c, and nSpectralSamples.
SampledSpectrum::SampledSpectrum | ( | const CoefficientSpectrum< nSpectralSamples > & | v | ) | [inline] |
Definition at line 256 of file spectrum.h.
SampledSpectrum::SampledSpectrum | ( | const RGBSpectrum & | r, | |
SpectrumType | type = SPECTRUM_REFLECTANCE | |||
) |
Definition at line 180 of file spectrum.cpp.
References FromRGB(), and RGBSpectrum::ToRGB().
SampledSpectrum SampledSpectrum::FromRGB | ( | const float | rgb[3], | |
SpectrumType | type = SPECTRUM_REFLECTANCE | |||
) | [static] |
Definition at line 93 of file spectrum.cpp.
References CoefficientSpectrum< nSamples >::Clamp(), rgbIllum2SpectBlue, rgbIllum2SpectCyan, rgbIllum2SpectGreen, rgbIllum2SpectMagenta, rgbIllum2SpectRed, rgbIllum2SpectWhite, rgbIllum2SpectYellow, rgbRefl2SpectBlue, rgbRefl2SpectCyan, rgbRefl2SpectGreen, rgbRefl2SpectMagenta, rgbRefl2SpectRed, rgbRefl2SpectWhite, rgbRefl2SpectYellow, and SPECTRUM_REFLECTANCE.
Referenced by FromXYZ(), SampledSpectrum(), and ToRGBSpectrum().
static SampledSpectrum SampledSpectrum::FromSampled | ( | const float * | lambda, | |
const float * | v, | |||
int | n | |||
) | [inline, static] |
Definition at line 258 of file spectrum.h.
References AverageSpectrumSamples(), CoefficientSpectrum< nSamples >::c, Lerp(), nSpectralSamples, sampledLambdaEnd, sampledLambdaStart, SortSpectrumSamples(), and SpectrumSamplesSorted().
static SampledSpectrum SampledSpectrum::FromXYZ | ( | const float | xyz[3], | |
SpectrumType | type = SPECTRUM_REFLECTANCE | |||
) | [inline, static] |
Definition at line 356 of file spectrum.h.
References FromRGB(), and XYZToRGB().
static void SampledSpectrum::Init | ( | ) | [inline, static] |
Definition at line 278 of file spectrum.h.
References AverageSpectrumSamples(), CoefficientSpectrum< nSamples >::c, CIE_lambda, CIE_X, CIE_Y, CIE_Z, Lerp(), nCIESamples, nRGB2SpectSamples, nSpectralSamples, RGB2SpectLambda, RGBIllum2SpectBlue, rgbIllum2SpectBlue, RGBIllum2SpectCyan, rgbIllum2SpectCyan, RGBIllum2SpectGreen, rgbIllum2SpectGreen, RGBIllum2SpectMagenta, rgbIllum2SpectMagenta, RGBIllum2SpectRed, rgbIllum2SpectRed, RGBIllum2SpectWhite, rgbIllum2SpectWhite, RGBIllum2SpectYellow, rgbIllum2SpectYellow, RGBRefl2SpectBlue, rgbRefl2SpectBlue, RGBRefl2SpectCyan, rgbRefl2SpectCyan, RGBRefl2SpectGreen, rgbRefl2SpectGreen, RGBRefl2SpectMagenta, rgbRefl2SpectMagenta, RGBRefl2SpectRed, rgbRefl2SpectRed, RGBRefl2SpectWhite, rgbRefl2SpectWhite, RGBRefl2SpectYellow, rgbRefl2SpectYellow, sampledLambdaEnd, sampledLambdaStart, X, Y, yint, and Z.
Referenced by pbrtInit().
void SampledSpectrum::ToRGB | ( | float | rgb[3] | ) | const [inline] |
Definition at line 348 of file spectrum.h.
References ToXYZ(), and XYZToRGB().
Referenced by ToRGBSpectrum().
RGBSpectrum SampledSpectrum::ToRGBSpectrum | ( | ) | const |
Definition at line 86 of file spectrum.cpp.
void SampledSpectrum::ToXYZ | ( | float | xyz[3] | ) | const [inline] |
Definition at line 331 of file spectrum.h.
References CoefficientSpectrum< nSpectralSamples >::c, CoefficientSpectrum< nSamples >::c, nSpectralSamples, X, Y, yint, and Z.
Referenced by ToRGB().
float SampledSpectrum::y | ( | ) | const [inline] |
Definition at line 342 of file spectrum.h.
References CoefficientSpectrum< nSpectralSamples >::c, CoefficientSpectrum< nSamples >::c, nSpectralSamples, Y, and yint.
SampledSpectrum SampledSpectrum::rgbIllum2SpectBlue [static, private] |
Definition at line 374 of file spectrum.h.
SampledSpectrum SampledSpectrum::rgbIllum2SpectCyan [static, private] |
Definition at line 371 of file spectrum.h.
SampledSpectrum SampledSpectrum::rgbIllum2SpectGreen [static, private] |
Definition at line 373 of file spectrum.h.
SampledSpectrum SampledSpectrum::rgbIllum2SpectMagenta [static, private] |
Definition at line 372 of file spectrum.h.
SampledSpectrum SampledSpectrum::rgbIllum2SpectRed [static, private] |
Definition at line 373 of file spectrum.h.
SampledSpectrum SampledSpectrum::rgbIllum2SpectWhite [static, private] |
Definition at line 371 of file spectrum.h.
SampledSpectrum SampledSpectrum::rgbIllum2SpectYellow [static, private] |
Definition at line 372 of file spectrum.h.
SampledSpectrum SampledSpectrum::rgbRefl2SpectBlue [static, private] |
Definition at line 370 of file spectrum.h.
SampledSpectrum SampledSpectrum::rgbRefl2SpectCyan [static, private] |
Definition at line 367 of file spectrum.h.
SampledSpectrum SampledSpectrum::rgbRefl2SpectGreen [static, private] |
Definition at line 369 of file spectrum.h.
SampledSpectrum SampledSpectrum::rgbRefl2SpectMagenta [static, private] |
Definition at line 368 of file spectrum.h.
SampledSpectrum SampledSpectrum::rgbRefl2SpectRed [static, private] |
Definition at line 369 of file spectrum.h.
SampledSpectrum SampledSpectrum::rgbRefl2SpectWhite [static, private] |
Definition at line 367 of file spectrum.h.
SampledSpectrum SampledSpectrum::rgbRefl2SpectYellow [static, private] |
Definition at line 368 of file spectrum.h.
SampledSpectrum SampledSpectrum::X [static, private] |
Definition at line 365 of file spectrum.h.
SampledSpectrum SampledSpectrum::Y [static, private] |
Definition at line 365 of file spectrum.h.
float SampledSpectrum::yint [static, private] |
Definition at line 366 of file spectrum.h.
SampledSpectrum SampledSpectrum::Z [static, private] |
Definition at line 365 of file spectrum.h.