Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"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)
"colorspace", [colorio.CIELAB(), colorio.CAM02("UCS", 0.69, 20, 64 / numpy.pi / 5)]
)
def test_hung_berns(colorspace):
colorspace.show_hung_berns()
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