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 glob | |
import numpy as np | |
import colour | |
from colour import (DEFAULT_SPECTRAL_SHAPE, STANDARD_OBSERVERS_CMFS, ones_spd, | |
read_image) | |
from colour.utilities import tsplit, tstack, warning | |
from colour.plotting import image_plot |
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 glob | |
import os | |
import colour | |
from colour.plotting import RGB_chromaticity_coordinates_chromaticity_diagram_plot_CIE1931 | |
def image_sequence_to_chromaticity_diagram(images, | |
output_directory, | |
input_colourspace='sRGB', |
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 colour | |
import numpy as np | |
# CIE L*a*b* input data | |
Lab = np.array([79.57, -1.61, 13.05]) | |
# Assumed illuminant used for CIE L*a*b* measurements, could be D65. | |
illuminant_t = colour.ILLUMINANTS[ | |
'CIE 1931 2 Degree Standard Observer']['D50'] | |
# Munsell Renotation System illuminant. |

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
# %% | |
class Foo(): | |
def __init__(self): | |
print('Foo') | |
class Bar(Foo): | |
def __init__(self): | |
super(Bar, self).__init__() | |
print('Bar') |
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 colour | |
# The two RGB triplets we want to measure the colour difference: | |
RGB = [(0.26, 0.42, 0.78), (0.25, 0.41, 0.79)] | |
# The reference illuminant/whitepoint. | |
D65 = colour.ILLUMINANTS['CIE 1931 2 Degree Standard Observer']['D65'] | |
# Assuming sRGB IEC61966-2.1 encoded colours. | |
# - sRGB/BT.709 Primaries |
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 10.5 v2 | |
Read { | |
inputs 0 | |
file /Users/kelsolaar/Downloads/grace_probe.hdr | |
format "1000 1000 0 0 1000 1000 1 " | |
origset true | |
name grace_probe_Read | |
label http://www.pauldebevec.com/Probes/grace_probe.hdr | |
selected true |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Converts from *Omnifocus* *taskpaper* export to *org-mode*. | |
Examples | |
-------- | |
> python taskpaper2org.py omnifocus.txt > omnifocus.org | |
Notes |
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
%matplotlib inline | |
import colour | |
from colour.plotting.diagrams import * | |
colour.CMFS['CIE 1964 10 Degree Standard Observer - Trimmed'] = colour.CMFS['CIE 1964 10 Degree Standard Observer'].clone().align(colour.SpectralShape(400, 700, 1)) | |
CIE_1976_UCS_chromaticity_diagram_colours_plot( | |
samples=1024, | |
standalone=False, |