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
#!/usr/bin/env bash | |
# Function which does almost everything. It needs to be a function as it is recursively | |
# called if the input is a directory. | |
main () { | |
for i in "$@"; do | |
# Check to see if input is valid | |
checkInput "$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
#!/usr/bin/env python3 | |
from argparse import ArgumentParser | |
import os | |
import json | |
import math | |
from subprocess import run, DEVNULL, PIPE | |
from fractions import Fraction | |
from multiprocessing import Pool | |
from itertools import accumulate |
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
#!/bin/bash | |
# Pre-defined RGB & WP values for BT.2020 | |
BT2020_xW=0.3127 | |
BT2020_yW=0.3290 | |
BT2020_xR=0.708 | |
BT2020_yR=0.292 | |
BT2020_xG=0.17 | |
BT2020_yG=0.797 | |
BT2020_xB=0.131 |