xyzToRgb

public final DoubleArray xyzToRgb(@Size(value = 3) DoubleArray xyzIn, @Size(value = 3) DoubleArray refIn, @Size(value = 2) DoubleArray redChromaticity, @Size(value = 2) DoubleArray greenChromaticity, @Size(value = 2) DoubleArray blueChromaticity, @Size(value = 2) DoubleArray whiteChromaticity)

Calculates linear RGB from XYZ given chromaticity coordinates of RGB working space primaries and reference whites of RGB and XYZ value

Return

Linear RGB value, unity scale, (element order R, G, B)

Parameters

xyzIn

Input colour XYZ values, unity scale (element order X, Y, Z)

refIn

Reference white of input colour xyzIn, unity scale (element order Xref, Yref, Zref)

redChromaticity

RGB space red primary chromaticity coordinates (element order x, y)

greenChromaticity

RGB space green primary chromaticity coordinates (element order x, y)

blueChromaticity

RGB space blue primary chromaticity coordinates (element order x, y)

whiteChromaticity

RGB space reference white/grey chromaticity coordinates (element order x, y)