Skip to content

Instantly share code, notes, and snippets.

View KelSolaar's full-sized avatar
🔅
Bending Light

Thomas Mansencal KelSolaar

🔅
Bending Light
View GitHub Profile
@KelSolaar
KelSolaar / hl_recovery.ipynb
Created October 21, 2015 08:07
Highlights Recovery
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@KelSolaar
KelSolaar / aces_xyz_matrices.ipynb
Last active September 1, 2015 20:13
ACES - XYZ Matrices
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@KelSolaar
KelSolaar / rgb_luminance.py
Created June 13, 2015 11:20
RGB Luminance
# https://github.com/colour-science/colour/blob/develop/colour/models/derivation.py#L158
import colour
sRGB = colour.RGB_COLOURSPACES['sRGB']
colour.RGB_luminance_equation(sRGB.primaries, sRGB.whitepoint)
# u'Y = 0.212636821677(R) + 0.715182981841(G) + 0.0721801964814(B)'
@KelSolaar
KelSolaar / plane_visual_box_visual_vispy.py
Last active August 29, 2015 14:21
PlaneVisual & BoxVisual - Vispy
# !/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
@KelSolaar
KelSolaar / mmColorTarget.py
Created May 2, 2015 20:37
mmColorTarget - Colourspaces
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 / red_colourspaces_ramblings.nkp
Created April 29, 2015 12:03
RED Colourspaces Ramblings
set cut_paste_input [stack 0]
version 9.0 v4
BackdropNode {
inputs 0
name Colour_Derived_Rec_709_BackdropNode
tile_color 0xaaffffff
note_font_size 42
selected true
xpos 280
ypos -213
@KelSolaar
KelSolaar / rgb_colourspace_transformation_with_lut.nkp
Created April 2, 2015 21:35
RGB Colourspace Transformation with LUT
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 / rgb_colourspace_whitepoint_change.ipynb
Last active August 29, 2015 14:17
RGB Colourspace Whitepoint Change
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@KelSolaar
KelSolaar / whitepoint_change.nkp
Last active June 22, 2017 22:18
Whitepoint Change
set cut_paste_input [stack 0]
version 8.0 v1
CheckerBoard2 {
inputs 0
name CheckerBoard
selected true
xpos 70
ypos -81
}
set N1ef0a2e0 [stack 0]
@KelSolaar
KelSolaar / filmic_tonemapping_operator.nkp
Last active June 17, 2017 09:25
Filmic Tonemapping Operator - John Habble - HP Duiker
set cut_paste_input [stack 0]
version 8.0 v1
push $cut_paste_input
Group {
name Filmic_Tonemapping_Operator
selected true
xpos -158
ypos -20
addUserKnob {20 filmic_tonemapping_operator_Tab l "Filmic Tonemapping Operator"}
addUserKnob {20 tone_parameters_Group l "Tone Parameters" n 1}