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
def face_mask( | |
quad=False, | |
material=False, | |
face_uvs=False, | |
face_vertex_uvs=False, | |
face_normals=False, | |
face_vertex_normals=False, | |
face_colours=False, | |
face_vertex_colours=False, |
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 bpy | |
from colour.models import RGB_COLOURSPACES, RGB_to_XYZ, \ | |
XYZ_to_colourspace_model | |
def RGB_identity_cube(subdivisions=32): | |
bpy.ops.mesh.primitive_cube_add(location=(0.5, 0.5, 0.5)) | |
bpy.ops.transform.resize(value=(0.5, 0.5, 0.5)) | |
bpy.ops.object.transform_apply(location=True, scale=True) |
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
wavelength | HeNe Laser | |
---|---|---|
301.2475431 | 121.7295551 | |
303.5565712 | 123.2564968 | |
305.8655993 | 120.5549846 | |
308.1746274 | 122.0819263 | |
310.4836555 | 120.9073557 | |
312.7926836 | 120.7898987 | |
315.1017117 | 120.3200705 | |
317.4107398 | 121.377184 | |
319.719768 | 121.8470122 |
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
#!/usr/bin/env bash | |
# Container Information | |
CONTAINER_IMAGE="nginx:latest" | |
CONTAINER_NAME="nginx" | |
# Container Run Command | |
run-container() { | |
docker run \ | |
-d \ | |
--restart always \ |
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
set cut_paste_input [stack 0] | |
version 10.5 v2 | |
push $cut_paste_input | |
Expression { | |
temp_name0 cutInv | |
temp_expr0 0.181 | |
temp_name1 b_ | |
temp_expr1 0.00873 | |
temp_name2 c | |
temp_expr2 0.241514 |
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 glob | |
import numpy as np | |
import colour | |
from colour import (DEFAULT_SPECTRAL_SHAPE, STANDARD_OBSERVERS_CMFS, ones_spd, | |
read_image) | |
from colour.utilities import tsplit, tstack, warning | |
from colour.plotting import image_plot |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 glob | |
import os | |
import colour | |
from colour.plotting import RGB_chromaticity_coordinates_chromaticity_diagram_plot_CIE1931 | |
def image_sequence_to_chromaticity_diagram(images, | |
output_directory, | |
input_colourspace='sRGB', |
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 colour | |
import numpy as np | |
# CIE L*a*b* input data | |
Lab = np.array([79.57, -1.61, 13.05]) | |
# Assumed illuminant used for CIE L*a*b* measurements, could be D65. | |
illuminant_t = colour.ILLUMINANTS[ | |
'CIE 1931 2 Degree Standard Observer']['D50'] | |
# Munsell Renotation System illuminant. |