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
# Creates a gamma-corrected lookup table by @hexagon5un | |
# 04/23: updated file handle func and template strings for python 3, | |
# uses byte datatype instead of int, | |
# uses PROGMEM for storing table in memory (accessed with pgm_read_byte in Arduino), | |
# added explanatory comments and number padding (@matthewepler) | |
import math | |
def gamma(nsteps, gamma): | |
gammaedUp = [math.pow(x, gamma) for x in range(nsteps)] |
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 gab.opencvpro.*; | |
import org.opencv.imgproc.Imgproc; | |
import org.opencv.core.Core; | |
import org.opencv.core.Mat; | |
import org.opencv.core.CvType; | |
import org.opencv.core.MatOfPoint; | |
import org.opencv.core.Point; | |
import java.awt.Rectangle; |