summaryrefslogtreecommitdiff
path: root/linpoly.py
diff options
context:
space:
mode:
authorWolfgang Draxinger <code@datenwolf.net>2025-07-19 12:34:03 +0200
committerWolfgang Draxinger <code@datenwolf.net>2025-07-19 12:34:03 +0200
commitead2b129d2e555a8040bc8178bc82698ef8e3221 (patch)
tree42e07a3aee20dd311e989fc0ed2397c39fe69715 /linpoly.py
parent1a9569912879f52c69a6f301719e5b543fe86cc6 (diff)
downloadglsldebayer-release.tar.gz
glsldebayer-release.tar.bz2
zlib/libpng licensedreleasedev_dw
Diffstat (limited to 'linpoly.py')
-rwxr-xr-xlinpoly.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/linpoly.py b/linpoly.py
index 3419a07..fb58985 100755
--- a/linpoly.py
+++ b/linpoly.py
@@ -1,4 +1,10 @@
#!/usr/bin/env -S python3
+# SPDX-License-Identifier: zlib-acknowledgement
+# (c) 2025 Wolfgang 'datenwolf' Draxinger
+#
+# Fit a power polynomial of degree 16 to a tristimulus linearization LUT
+# and output the coefficients in the form of C-style arrays
+
import numpy
from numpy.polynomial import Polynomial, Chebyshev
from matplotlib.pyplot import *