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 os | |
import numpy as np | |
import colour | |
from colour_hdri import * | |
RESOURCES_DIRECTORY = '/Users/kelsolaar/Downloads/Tiff' | |
TIFF_FILES = filter_files(RESOURCES_DIRECTORY, ('tiff',)) |
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
[localhost] local: cmake D:\Documents\Development\ThirdParty\openimageio\oiio -DCMAKE_INSTALL_PREFIX=D:\Documents\Development\ThirdParty\openimageio/build\release -DILMBASE_INCLUDE_PATH=C:\Users\thomas\Packages\ilmbase\2.2.0\ilmbase\include -DOPENEXR_INCLUDE_PATH=C:\Users\thomas\Packages\openexr\2.2.0\openexr\include -DBOOST_ROOT=C:\Users\thomas\Packages\boost\1.64.0\boost -G "Visual Studio 15 Win64" -T v141,host=x64 | |
-- The C compiler identification is MSVC 19.10.25019.0 | |
-- The CXX compiler identification is MSVC 19.10.25019.0 | |
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl.exe | |
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl.exe -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.10.2 |
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
[localhost] local: cmake D:\Documents\Development\ThirdParty\opencolorio\OpenColorIO -DCMAKE_INSTALL_PREFIX=D:\Documents\Development\ThirdParty\opencolorio/build\release -DBOOST_ROOT=C:\Users\thomas\Packages\boost\1.64.0\platform-windows\boost -DOCIO_USE_BOOST_PTR=ON -G "Visual Studio 15 Win64" -T v141,host=x64 | |
-- The C compiler identification is MSVC 19.10.25019.0 | |
-- The CXX compiler identification is MSVC 19.10.25019.0 | |
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl.exe | |
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl.exe -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/cl.exe | |
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studi |
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, |
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
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
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
# %% | |
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 | |
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. |