From 4154609e5de76bc8858d3f86e0af09ba2700c488 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 23 Sep 2017 21:57:45 +0200 Subject: Fix colour distortion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This matrices are not convert to or from the proper YUV colour space both rather the ones used in videos. srgb_to_yuv was created by converting the image [sRGB(100%, 0, 0); sRGB(0, 100%, 0); sRGB(0, 0, 100%)] to YUV with FFmpeg and transposing the matrix. yuv_to_srgb is the inversion of that matrix, the values in the first column should all be 1 but are not due to rounding/truncation error. Signed-off-by: Mattias Andrée --- TODO | 2 -- 1 file changed, 2 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index fb3982d..abb4cb4 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,3 @@ -Conversion either from or to video changes the brightness of the primitives (but not greys) - 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 -- cgit v1.2.3-70-g09d2