Beruflich Dokumente
Kultur Dokumente
POSTS
O C TO B E R 3 1 , 2 0 1 7
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQA… 1/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
(work in progress)
Matlab code made by Tinna Lif Gunnarsdottir.
Part 1 is here
R = [0.708 ; 0.292 ; 0.000];
G = [0.170 ; 0.797 ; 0.0330];
B = [0.131 ; 0.046 ; 0.8230];
P = [R G B];
X = 0.3127;
Y = 0.3290;
Z = 0.3583;
W = [X/Y ; 1 ; Z/Y];
CC = P \ W;
C = [CC(1,1) 0 0 ; 0 CC(2,1) 0 ; 0 0 CC(3,1)];
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To �nd out more, including how to control cookies, see here: Cookie Policy
format long
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQA… 2/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
NPM = P * C
NPM_inv = inv(NPM)
NPM =
0.636958048301291 0.144616903586208 0.168880975164172
0.262700212011267 0.677998071518871 0.059301716469862
0 0.028072693049088 1.060985057710791
NPM_inv =
1.716651187971268 0.355670783776393 0.253366281373660
0.666684351832489 1.616481236634939 0.015768545813911
0.017639857445311 0.042770613257809 0.942103121235474
% COLOR DCI P3 D65
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To �nd out more, including how to control cookies, see here: Cookie Policy
R_P3 = [0.6800 ; 0.3200 ; 0.0000];
G_P3 = [0.2650 ; 0.6900 ; 0.0450];
B_P3 = [0.1500 ; 0.0600 ; 0.7900];
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQA… 3/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
P_P3 = [R_P3 G_P3 B_P3];
X_P3 = 0.3127;
Y_P3 = 0.3290;
Z_P3 = 0.3583;
W_P3 = [X_P3/Y_P3 ; 1 ; Z_P3/Y_P3];
CC_P3 = P_P3 \ W_P3;
C_P3 = [ CC_P3(1,1) 0 0 ; 0 CC_P3(2,1) 0 ; 0 0 CC_P3(3,1)];
NPM_P3 = P_P3 * C_P3
% TRA
TRA_P3 = NPM \ NPM_P3
NPM_P3 =
0.486570948648216 0.265667693169093 0.198217285234362
0.228974564069749 0.691738521836506 0.079286914093745
0 0.045113381858903 1.043944368900976
TRA_P3 =
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To �nd out more, including how to control cookies, see here: Cookie Policy
0.753833034361722 0.198597369052617 0.047569596585662
0.045743848965358 0.941777219811693 0.012478931222948
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQA… 4/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
0.001210340354518 0.017601717301090 0.983608623053428
R_7 = [0.640 ; 0.330 ; 0.030];
G_7 = [0.300 ; 0.600 ; 0.100];
B_7 = [0.150 ; 0.060 ; 0.790];
P_7 = [R_7 G_7 B_7];
% White Point D65
X_7 = 0.3127;
Y_7 = 0.3290;
Z_7 = 0.3583;
W_7 = [X_7/Y_7 ; 1 ; Z_7/Y_7];
CC_7 = P_7 \ W_7; % P inv
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
C_7 = [ CC_7(1,1) 0 0 ; 0 CC_7(2,1) 0 ; 0 0 CC_7(3,1)];
To �nd out more, including how to control cookies, see here: Cookie Policy
NPM_7 = P_7 * C_7
TRA_7 = NPM \ NPM_7 % Rec709 source, NPM/2020 dest, and inv
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQA… 5/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
NPM_7 =
0.412390799265959 0.357584339383878 0.180480788401834
0.212639005871510 0.715168678767756 0.072192315360734
0.019330818715592 0.119194779794626 0.950532152249661
TRA_7 =
0.627403895934699 0.329283038377884 0.043313065687417
0.069097289358232 0.919540395075459 0.011362315566309
0.016391438875150 0.088013307877226 0.895595253247624
X_P3_W = 0.314;
Y_P3_W = 0.351;
Z_P3_W = 0.335;
W_P3_W = [X_P3_W/Y_P3_W ; 1 ; Z_P3_W/Y_P3_W];
CC_P3_W = P_P3 \ W_P3_W;
C_P3_W = [ CC_P3_W(1,1) 0 0 ; 0 CC_P3_W(2,1) 0 ; 0 0
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
CC_P3_W(3,1)];
To �nd out more, including how to control cookies, see here: Cookie Policy
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQA… 6/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
NPM_P3_W = P_P3 * C_P3_W
TRA_P3_W = NPM \ NPM_P3_W
NPM_P3_W =
0.445169815564552 0.277134409206778 0.172282669815565
0.209491677912731 0.721595254161044 0.068913067926226
0 0.047060560053981 0.907355394361973
TRA_P3_W =
0.689691223459987 0.207169204075508 0.041345622770170
0.041851616632057 0.982426091420886 0.010846196309229
0.001107355451221 0.018361440441151 0.854913936657422
J U LY 5 , 2 0 1 7
Sometimes you may want to add something to a DCP trailer or feature �lm.
Example: Trailers often need new graphics in a new language.
In Photoshop you can apply 3D LUTS to an image to match the white point of the original
DCP.
If the DCP has a warm white you could use a D60 3D LUT and if it has a cooler white you
can use a D65 3D LUT.
If you&render
Privacy Cookies:aThis
video �le cookies.
site uses in FinalByCut X or Premiere
continuing with graphics
to use this website, that
you agree to theirhas
use.a X’Y’Z’ 3D LUT
To �nd out more, including how to control cookies, see here: Cookie Policy
applied, remember to choose no color transform in Easydcp and similar DCP mastering
software.
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQA… 7/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To �nd out more, including how to control cookies, see here: Cookie Policy
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQA… 8/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
Click on load 3d lut and choose a 3D LUT. You can now use a cube 3D LUT.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To �nd out more, including how to control cookies, see here: Cookie Policy
Some 3D LUTS
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQA… 9/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
Here are some P3 and REC709 3D LUTS in 3DL and CUBE (�oat) format using the Nuke
3D LUT method from this post and the matlab NPMs from this post.
White in the 12 bit 3dl �le is 3885 3960 3997 It is the correct D61 value in SMPTE EG-
432-1-10
White in the 12 bit 3dl �le is 3886 3960 3972. It is the correct D60 value in SMPTE EG-
432-1-10
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To �nd out more, including how to control cookies, see here: Cookie Policy
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQ… 10/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To �nd out more, including how to control cookies, see here: Cookie Policy
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQA… 11/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To �nd out more, including how to control cookies, see here: Cookie Policy
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQ… 12/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To �nd out more, including how to control cookies, see here: Cookie Policy
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQ… 13/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To �nd out more, including how to control cookies, see here: Cookie Policy
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQ… 14/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
White in the 12 bit 3dl �les is 3886 3960 3972. It is the correct D60 value in SMPTE EG-
432-1-10
Update: For part 2 with the RP-177 TRA matlab code see this post
To make DCPs in DCI-P3 D6O, D61, D65 or Rec 709 D60, D61, D65 you can use SMPTE
RP-177:1993 3×3 NPMs to transfer from RGB to XYZ.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To �nd out more, including how to control cookies, see here: Cookie Policy
NPM = normalized primary matrix
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQ… 15/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
For more info on the math see SMPTE EG 432-1-10 and How to make 3D LUTs in Nuke (R
´B´G´to X´Y´Z´)
update:
Here is the matlab code to calculate the correct RP-177 RGB-XYZ matrices to go from
DCI-P3 D6O to XYZ.
MATLAB CODE
#DCI-P3 Primaries
P = [R G B];
X = 0.3217;
Y = 0.3378;
Z = 0.3405;
W = [X/Y ; 1 ; Z/Y];
CC = P \ W;
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
NPM
To = Pmore,
�nd out * C including how to control cookies, see here: Cookie Policy
NPM =
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQ… 16/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
The Rec709 and DCI-P3 D65 3×3 matrices is also used in this post
DCI-P3 D65
WHITE POINT
X = 0.3127;
Y = 0.3290;
Z = 0.3583;
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQ… 17/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
DCI-P3 D61
WHITE POINT
X = 0.3198;
Y = 0.3360;
Z = 0.3442;
DCI-P3 DCI-WHITE
WHITE POINT
X = 0.314;
Y = 0.351;
Z = 0.335;
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQ… 18/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
REC 709
REC 709 D65, D60, D61 �ts inside DCI-P3 and can be used in DCPs.
REC709 Primaries
R = [0.640 ; 0.330 ; 0.030];
G = [0.300 ; 0.600 ; 0.100];
B = [0.150 ; 0.060 ; 0.790];
D60 WHITE
Privacy & Cookies:POINT
This site uses cookies. By continuing to use this website, you agree to their use.
To �nd out more, including how to control cookies, see here: Cookie Policy
X = 0.3217;
Y = 0.3378;
Z = 0.3405;
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQ… 19/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
X = 0.3198;
Y = 0.3360;
Z = 0.3442;
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To �nd out more, including how to control cookies, see here: Cookie Policy
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQ… 20/21
24/2/2019 Knut Erik Evensen KESE DCP Mastering, Film Production, Post Production, Projection
http://www.knuterikevensen.com/?gclid=CjwKCAiAnsnjBRB6EiwATkM1XodP1Q20jNDA1EvhdtFkKcDsv_FNMu2mpDk6hFYGz4Rok0mRcWQNhoCIkQ… 21/21