linearToReflectance

fun linearToReflectance(rgb: ColorRGBa): DoubleArray(source)

Converts a linear RGB color into a reflectance spectrum represented as a DoubleArray. The resulting reflectance spectrum spans 38 wavelength samples and is computed using spectral upsampling based on predefined spectral distributions.

Return

A DoubleArray containing 38 reflectance values corresponding to the wavelengths.

Parameters

rgb

The linear RGB color to be converted, represented as a ColorRGBa object.