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 / cie_lab.py
Last active October 21, 2023 07:59
CIE Lab to CIE XYZ - Mojo
from algorithm import parallelize
from benchmark import Benchmark
from math import min
from math.limit import inf
from python import Python
from tensor import Tensor, TensorSpec, TensorShape
from random import rand
from time import now
from utils.index import Index
@KelSolaar
KelSolaar / plasa_ansi_e154.py
Created August 19, 2023 23:14
PLASA ANSI E1.54 - Whitepoint Derivation
# Standard claims at https://webstore.ansi.org/preview-pages/ESTA/preview_ANSI+E1.54-2015.pdf gives [0.4254, 0.4044]
import colour
# Blackbody: 360, 780, 1nm
# CIE 1931 2 Degree Standard Observer: 360, 780, 1nm
# Method: ASTM E308
print(
colour.XYZ_to_xy(
colour.sd_to_XYZ(
@KelSolaar
KelSolaar / BuildProject.xml
Created July 31, 2023 03:58 — forked from regner/BuildProject.xml
A sample BuildGraph script for building, cooking, and packaging an Unreal project.
<?xml version='1.0' ?>
<!--
Why is this one giant script instead of a bunch of smaller scripts?
Mostly this comes down to BuildGraph and personal preference. As the language BuildGraph isn't
really much of a programming language there is no easy way to use an IDE and jump between
includes, find usages of variables, and just generally quickly search things. It was found to
be easier to have a single large file that a developer can quickly jump up and down in when
trying to understand what the BuildGraph script is doing.
@KelSolaar
KelSolaar / aided_atlas.py
Last active April 3, 2023 07:55
AideDD - Atlas
#!/usr/bin/env python
"""
AideDD - Atlas
==============
This Python module extracts the map data from
`AideDD Atlas <https://www.aidedd.org/public/atlas>`__
The following packages are required:
@KelSolaar
KelSolaar / pyproject.toml
Created February 22, 2022 06:48
Colour - pyproject.toml
[tool.poetry]
name = "colour"
version = "0.4.0"
description = "Colour Science for Python"
license = "BSD-3-Clause"
authors = [ "Colour Developers <colour-developers@colour-science.org>" ]
maintainers = [ "Colour Developers <colour-developers@colour-science.org>" ]
readme = 'README.rst'
repository = "https://github.com/colour-science/colour"
homepage = "https://www.colour-science.org/"
@KelSolaar
KelSolaar / GSoC2021.md
Last active August 23, 2021 02:48 — forked from SGeetansh/GSoC2021.md
Google Summer of Code 2021 Final Work Submission
@KelSolaar
KelSolaar / aces_shoot_cc24_neutral5.json
Last active September 7, 2021 10:04
ACES Shoot - CC24 Neutral 5 (.70 D)
{
"ALEXA SXT": {
"A-2_2": {
"-2": {
"Directory": "/20210601/A003R732/A003R732/A003C003_210519_R732",
"Encoding": "LOG-C/AWG",
"Grey Card (Sequence)": [
[0.255043625831604, 0.24865077435970306, 0.23095490038394928],
[0.2548905611038208, 0.2486673891544342, 0.23095150291919708],
[0.2553250789642334, 0.24885307252407074, 0.23137225210666656],
@KelSolaar
KelSolaar / aces_shoot_cc24_samples.json
Last active September 7, 2021 10:03
ACES Shoot - CC24 Samples
This file has been truncated, but you can view the full file.
{
"ALEXA SXT": {
"Flat Field": {
"NA": {
"Samples (Sequence)": [
[
[0.671089768409729, 0.6727330684661865, 0.6635704040527344],
[0.6711151003837585, 0.6730829477310181, 0.6639554500579834],
[0.6708062291145325, 0.6727433204650879, 0.6637686491012573],
@KelSolaar
KelSolaar / rokh.py
Created July 26, 2021 23:55 — forked from andyneff/rokh.py
Python file for parsing uasset files from Rokh
import logging
import re
import collections
import struct
from StringIO import StringIO
import codecs
import binascii
import math
import sys
@KelSolaar
KelSolaar / config-aces-cg.yaml
Created July 19, 2021 11:05
The "Academy Color Encoding System" "CG" config.
ocio_profile_version: 2
environment:
{}
search_path: luts
strictparsing: true
luma: [0.2126, 0.7152, 0.0722]
description: |
The "Academy Color Encoding System" (ACES) "CG Config"
------------------------------------------------------