commit 44183c3da6987386829d8e9e2a50b8a62508d503
parent ccd26e2affb0fb4a10b7261a85cb85b2525e5d9e
Author: Mattias Andrée <maandree@kth.se>
Date: Sun, 23 Jul 2017 21:36:58 +0200
Fix blind-primary-key
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat:
2 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/TODO b/TODO
@@ -1,12 +1,3 @@
-This command should not noticeably change the image:
-
- RGB="$(./blind-colour-srgb -ld1 1 0 0) $(./blind-colour-srgb -ld1 0 1 0) $(./blind-colour-srgb -ld1 0 0 1)"
- ./blind-from-image < in.png | ./blind-affine-colour -al <(./blind-colour-matrix $RGB) | \
- ./blind-affine-colour -al <(./blind-colour-matrix $RGB | ./blind-invert-matrix -ae) | \
- ./blind-to-image | convert - out.png
-
-
-
blind-transform affine transformation by matrix multiplication, -[xy] for tiling, -s for
improve quality on downscaling (pixels' neighbours must not change)
blind-apply-map remap pixels (distortion) using the X and Y values, -[xy] for tiling, -s for
diff --git a/blind-primary-key b/blind-primary-key
@@ -72,12 +72,14 @@ else
blind-affine-colour -al \
<(blind-colour-matrix -F "$pixfmt" $zflag -- "$@" | \
blind-tee \
- >(blind-invert-matrix -ae | \blind-to-named -a blind-${pid}-invmat) | \
+ >(blind-invert-matrix -e | \blind-to-named -a blind-${pid}-invmat) | \
blind-repeat inf -)
}
unconvert () {
blind-affine-colour -al \
- <(blind-from-named -a blind-${pid}-invmat blind-repeat inf -)
+ <(blind-from-named -a blind-${pid}-invmat \
+ ./blind-arithm -xyz max <(./blind-single-colour -w 3 -h 3 1) | \
+ blind-repeat inf -)
}
fi