This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pprint import pprint | |
from colour import XYZ_to_CIECAM02, CIECAM02_VIEWING_CONDITIONS, sRGB_to_XYZ | |
from colour.models.deprecated import RGB_to_HSV | |
XYZ = np.array([19.01, 20.00, 21.78]) | |
XYZ_w = np.array([95.05, 100.00, 108.88]) | |
L_A = 318.31 | |
Y_b = 20.0 | |
surround = CIECAM02_VIEWING_CONDITIONS['Average'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
np.random.seed(64) | |
M_i = np.random.random((3, 3)) | |
M_o = np.random.random((3, 3)) | |
# M . M_i = M_o | |
# M . M_i . M_i^{-1} = M_o . M_i^{-1} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import colour | |
P_R = np.array([0.64, 0.33]) | |
P_G = np.array([0.30, 0.60]) | |
P_B = np.array([0.15, 0.06]) | |
D65 = colour.xy_to_XYZ(colour.ILLUMINANTS['cie_2_1931']['D65']) | |
D50 = colour.xy_to_XYZ(colour.ILLUMINANTS['cie_2_1931']['D50']) | |
CAT = 'Bradford' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set cut_paste_input [stack 0] | |
version 8.0 v1 | |
Read { | |
inputs 0 | |
file /Users/kelsolaar/Downloads/Pictures/SonyF35.StillLife.dpx | |
format "1920 1080 0 0 1920 1080 1 HD" | |
origset true | |
version 2 | |
colorspace linear | |
raw true |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set cut_paste_input [stack 0] | |
version 8.0 v1 | |
Read { | |
inputs 0 | |
file /Users/kelsolaar/Downloads/SonyF35.StillLife.dpx | |
format "1920 1080 0 0 1920 1080 1 HD" | |
origset true | |
colorspace linear | |
raw true | |
timecode 02:14:20:19 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import colour | |
for c in sorted(colour.RGB_COLOURSPACES.values()): | |
samples = np.linspace(0, 1, 1000) | |
samples_tf = [c.transfer_function(sample) for sample in samples] | |
samples_itf = [c.inverse_transfer_function(sample) for sample in samples_tf] | |
try: | |
np.testing.assert_almost_equal(samples, samples_itf, decimal=4) | |
except: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.