MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / setSourceRGB

Method setSourceRGB

sources/lut-calibrator/CapturedColor.cpp:231–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231void CapturedColor::setSourceRGB(byte3 _color)
232{
233 sourceRGB = ColorSpaceMath::to_int3(_color);
234
235 auto srgb = static_cast<double3>(sourceRGB) / 255.0;
236 sourceLch = ColorSpaceMath::xyz_to_lch(ColorSpaceMath::from_sRGB_to_XYZ(srgb) * 100.0);
237}
238
239int3 CapturedColor::getSourceRGB() const
240{

Callers 3

readBlockFunction · 0.80
parseBoardFunction · 0.80
setTestDataMethod · 0.80

Calls 3

to_int3Function · 0.85
xyz_to_lchFunction · 0.85
from_sRGB_to_XYZFunction · 0.85

Tested by

no test coverage detected