This file contains 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 logging | |
import colour | |
import numpy as np | |
from oiio import OpenImageIO as oiio | |
# --------------------------------------------------------- | |
def lerp(x, y, a): |
This file contains 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
""" | |
Convert Kelvin Temperatures to RGB values with given colorspace primaries. | |
Author: Liam Collod | |
Last Modified: 02/02/2021 | |
Require colour-science >= 0.3.16 | |
""" | |
import colour |
This file contains 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
""" | |
Author: Liam Collod | |
Last Modified: 02/12/2020 | |
Demo script how to use OCIO to convert an image array from a given colorspace | |
to XYZ (with the given whitepoint). (inverse also works) | |
Requirements: | |
opencolorio==2.1.0 | |
colour-science==0.3.16 |
This file contains 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
# THIS GIST IS DEPRECATED PLEASE VISIT https://github.com/MrLixm/AgXc/tree/main/python | |
""" | |
AgX from Troy.S as a native python + numpy implementation. | |
(shameless "improved" copy of its existing work). | |
[performances] | |
- not suitable for realtime | |
- 0.73s of processing for a 1920x1080x3 EXR image | |
[dependencies] |