summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2011-12-17 02:43:10 -0500
committerSøren Sandmann Pedersen <ssp@redhat.com>2013-07-29 06:21:51 -0400
commit20caaa3f0521e05cec37e2f98df874592997949a (patch)
tree859debe9c297d273f43cffe8370961cd7b640112
parentd46232defc798384f8ef939cfe2f4b15be2f0c91 (diff)
dither
-rw-r--r--docs/yuv-dither.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/yuv-dither.txt b/docs/yuv-dither.txt
index 34be7382..1c29ebd2 100644
--- a/docs/yuv-dither.txt
+++ b/docs/yuv-dither.txt
@@ -1,3 +1,12 @@
+New algorithm:
+
+First generate white triangular sRGB noise. Then, convert to
+s-CIELAB. Then swap pixels until the s-CIELAB error metric is a
+minimal distance from a black image.
+
+
+Older algorithm:
+
We must choose a box in YUV space. The edges of that box decide how
much noise to add in each of the three dimensions. If we assume HVS
has these relative sensitivities: