diff options
Diffstat (limited to 'test_colorchecker.py')
-rw-r--r-- | test_colorchecker.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test_colorchecker.py b/test_colorchecker.py index 0368058..83325b6 100644 --- a/test_colorchecker.py +++ b/test_colorchecker.py @@ -40,10 +40,9 @@ if __name__ == "__main__": # This demo goes through SDs in a color checker for name, sd in COLOURCHECKERS_SDS['ColorChecker N Ohta'].items(): XYZ = sd_to_XYZ(sd, illuminant=ill_sd) / 100 - target = XYZ_to_Lab(XYZ, ill_xy) - print("Color checker: The target is '%s' with L=%g, a=%g, b=%g" % (name, *target)) - ccp, error = jakob_hanika(target, ill_sd, ill_xy) + print("Color checker: The target is '%s' with X=%g, Y=%g, Z=%g" % (name, *XYZ)) + ccp, error = jakob_hanika(XYZ, ill_sd, ill_xy) matched_sd = model_sd(ccp) plot_comparison(sd, matched_sd, name, error, ill_sd) |