Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Thomas Mansencal KelSolaar

🎯
Focusing
Block or report user

Report or block KelSolaar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View about_linear_workflow.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@KelSolaar
KelSolaar / about_python_cython_numpy.ipynb
Last active Aug 29, 2015
About Python, Cython & Numpy
View about_python_cython_numpy.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Sony_F35_IDT_ramblings.nkp
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
@KelSolaar
KelSolaar / colour_-_computing_adapted_colourspace_primaries.py
Created Feb 13, 2015
Colour - Computing Adapted Colourspace Primaries
View colour_-_computing_adapted_colourspace_primaries.py
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'
View M_i\cdot M = M_o.py
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}
View hue_change.py
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']
@KelSolaar
KelSolaar / rgb_colourspace_whitepoint_change.ipynb
Last active Aug 29, 2015
RGB Colourspace Whitepoint Change
View rgb_colourspace_whitepoint_change.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@KelSolaar
KelSolaar / rgb_colourspace_transformation_with_lut.nkp
Created Apr 2, 2015
RGB Colourspace Transformation with LUT
View rgb_colourspace_transformation_with_lut.nkp
set cut_paste_input [stack 0]
version 8.0 v1
CMSTestPattern {
inputs 0
name CMSTestPattern
selected true
xpos 180
ypos -57
}
clone node11d373b60|Colorspace|60327 Colorspace {
@KelSolaar
KelSolaar / mmColorTarget.py
Created May 2, 2015
mmColorTarget - Colourspaces
View mmColorTarget.py
import numpy as np
import colour
name, data, illuminant = colour.COLOURCHECKERS['ColorChecker 2005']
for i, (name, colourspace) in enumerate(
sorted(colour.RGB_COLOURSPACES.items())):
if name in ('aces', 'adobe1998', 'prophoto'):
continue
@KelSolaar
KelSolaar / plane_visual_box_visual_vispy.py
Last active Aug 29, 2015
PlaneVisual & BoxVisual - Vispy
View plane_visual_box_visual_vispy.py
# !/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division
import sys
import numpy as np
from vispy import scene
from vispy.scene.visuals import create_visual_node
from vispy.visuals.mesh import MeshVisual
You can’t perform that action at this time.