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
[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
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
# IDT.Canon.EOSC700_CanonLog_CinemaGamut_TypeC_D55.a1.v1.ctl | |
import numpy as np | |
import colour | |
EOSC700_CINEMAGAMUT_TO_ACES_2065_1 = np.array( | |
[[0.763064455, 0.149021161, 0.087914384], | |
[0.003657457, 1.10696038, -0.110617837], | |
[-0.009407794, - 0.218383305, 1.227791099]]) |
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 numpy as np | |
from astropy.io import fits | |
import colour | |
import colour_demosaicing | |
image = its.getdata('test.fits', ext=0).astype(np.float_) / 255.0 | |
# image = colour.orient(image, '90 CW') |
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 | |
# Normalisation factor k = 1 in colour.spectral_to_XYZ_integration: | |
# https://github.com/colour-science/colour/blob/535609305db468d1f7e96e2500c110dc6550803c/colour/colorimetry/tristimulus.py#L471 | |
colour.spectral_to_XYZ_integration(colour.ILLUMINANTS_RELATIVE_SPDS['E']) / 100 | |
# array([ 106.86546949, 106.8569171 , 106.89225128]) |
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 numpy as np | |
import colour | |
RGB_i = [0.325683457522574, 0.094356847568351, 0.745367969845698] | |
RGB_o = np.ones(3) | |
for i in range(10000): | |
RGB_o = colour.HSV_to_RGB(colour.RGB_to_HSV(RGB_i)) |
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
# Using latest colour develop branch. | |
import colour | |
D65 = colour.ILLUMINANTS['cie_2_1931']['D65'] | |
P = colour.ROMM_RGB_COLOURSPACE.primaries | |
W = colour.ROMM_RGB_COLOURSPACE.whitepoint | |
P_a = colour.chromatically_adapted_primaries(P, W, D65) |
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 numpy as np | |
import colour | |
# Manual NPM Derivation | |
primaries=np.array([[0.1, 0.2], | |
[0.3, 0.4], | |
[0.5, 0.6]]) | |
whitepoint=np.array([0.5, 0.5]) | |
npm = colour.normalised_primary_matrix( |
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
<? | |
///////////////////// | |
// slack2html | |
// by @levelsio | |
///////////////////// | |
// | |
///////////////////// | |
// WHAT DOES THIS DO? | |
///////////////////// | |
// |