How to use the colorio.CAM02 function in colorio

To help you get started, we’ve selected a few colorio examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nschloe / colorio / test / test_tools.py View on Github external
    "colorspace", [colorio.CIELAB(), colorio.CAM02("UCS", 0.69, 20, 64 / numpy.pi / 5)]
)
def test_hdr_gamut(colorspace, n=10):
    colorspace.save_hdr_gamut("hdr.vtu", n=n)
github nschloe / colorio / test / test_tools.py View on Github external
    "colorspace", [colorio.CIELAB(), colorio.CAM02("UCS", 0.69, 20, 64 / numpy.pi / 5)]
)
def test_hung_berns(colorspace):
    colorspace.show_hung_berns()
github nschloe / colorio / test / test_ciecam02.py View on Github external
def test_conversion_variants(variant, xyz):
    # test with srgb conditions
    L_A = 64 / numpy.pi / 5
    cam02 = colorio.CAM02(variant, 0.69, 20, L_A)
    out = cam02.to_xyz100(cam02.from_xyz100(xyz))
    assert numpy.all(abs(xyz - out) < 1.0e-14)
    return