diff options
Diffstat (limited to 'test_colorchecker.py')
-rw-r--r-- | test_colorchecker.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/test_colorchecker.py b/test_colorchecker.py deleted file mode 100644 index 1503874..0000000 --- a/test_colorchecker.py +++ /dev/null @@ -1,25 +0,0 @@ -import numpy as np -from colour import * -from colour.recovery import RGB_to_sd_Jakob2019 -from gsoc_common import * - - -# This demo goes through SDs in a color checker -if __name__ == "__main__": - for name, sd in COLOURCHECKER_SDS['ColorChecker N Ohta'].items(): - XYZ = sd_to_XYZ(sd, illuminant=D65) / 100 - - RGB = XYZ_to_RGB( - XYZ, - D65_xy, - colourspace.whitepoint, - colourspace.XYZ_to_RGB_matrix, - ) - - recovered_sd, error = RGB_to_sd_Jakob2019( - RGB, - colourspace, - return_error=True - ) - - plot_comparison(sd, recovered_sd, name, error, D65) |