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 | |
| # Run this in the directory with all of the files to be made | |
| ls -1v | grep png > files2.txt | |
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
| gm convert -verbose -gamma 2.2 A004C007_1404240S.00164.dpx A01.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
| % MATLAB | |
| function all_curves(floor_temp, ceil_temp) | |
| % Interactive example and tutotial for plotting multiple lines on a Matlab | |
| % figure using black_body representative temperatures. | |
| % Function takes in two values, a low (floor) temperature and a high (ceil) | |
| % temperature and plots lines incremented between them. The function then | |
| % plots each plotted_line based on each increment and then scales automatically to | |
| % fit the values. |
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 | |
| ffmpeg -i input -vf lut3d=<lut file> -c:a copy output |
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
| # Correct syntax to use imagemagick to apply a 3D LUT to an image frame | |
| convert [input_frame] [LUT frame (must be HALD)] -hald-clut [output_frame_name] |
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 sys | |
| import time | |
| def getValue(): | |
| T = float(raw_input("Enter a number: ")) | |
| return T | |
| def getValue(): | |
| V = float(raw_input("Enter a number: ")) |
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
| ``` | |
| Basic script to parse the current time and then use the official NOAA algorithm to return the current RealFeel temperature. | |
| Jordan Westhoff, RIT 2015 | |
| ``` | |
| import os | |
| import sys | |
| import time | |
| T = input('Enter the current temperature (F): ') |
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
| % Basic single use script to plot the correct CIE REC.709 OETF function | |
| % Jordan Westhoff, RIT 2014 | |
| % Use exposure math to calculate the first portion of the OETF | |
| G = 1.099; | |
| B = 1 - G; | |
| L = (G/10)^(20/11); |
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
| % Idiot proof snippet of code to generate a scale of 0-max 10 bit values in MATLAB. | |
| col_1 = [0:1:1023]; | |
| Ten_bit_vals= [col_1 col_1]; | |
| display(Ten_bit_vals) | |
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
| function custom_saturation(input_image, coefficient) | |
| % USAGE | |
| % Run the function with an input image as a string and with a coefficient | |
| % for the level of saturation to apply to the image. Some common usages | |
| % are: | |
| % | |
| % custom_saturation('panda.jpg', 0) -> This will entirely desaturate the | |
| % image, panda.jpg | |
| % custom_saturation('panda.jpg', 1) -> This will not modify the image sat. |