@@ -72,14 +72,6 @@ static const double d50 [3] = {0.9642, 1.0000, 0.8250};
7272static const double d60 [3 ] = {0.952646074569846 , 1.0000 , 1.00882518435159 };
7373static const double d65 [3 ] = {0.9547 , 1.0000 , 1.0883 };
7474
75- static const std::vector<double > ACES_white_XYZ = {
76- 0.952646074569846 , 1.0 , 1.00882518435159
77- };
78-
79- static const std::vector<double > D65_white_XYZ = {
80- 0.9547 , 1.0000 , 1.0883
81- };
82-
8375static const double neutral3[3 ][3 ] = {
8476 {1.0 , 0.0 , 0.0 },
8577 {0.0 , 1.0 , 0.0 },
@@ -166,13 +158,6 @@ static const double XYZ_acesrgb_3[3][3] = {
166158 { 0.0000000000 , 0.0000000000 , 0.9912520182 }
167159};
168160
169-
170- static const std::vector<std::vector<double >> XYZ_to_ACES = {
171- { 1.0498110175 , 0.0000000000 , -0.0000974845 },
172- { -0.4959030231 , 1.3733130458 , 0.0982400361 },
173- { 0.0000000000 , 0.0000000000 , 0.9912520182 }
174- };
175-
176161static const double XYZ_acesrgb_4[4 ][4 ] = {
177162 { 1.0498110175 , 0.0000000000 , -0.0000974845 , 0.0 },
178163 { -0.4959030231 , 1.3733130458 , 0.0982400361 , 0.0 },
@@ -243,13 +228,19 @@ static const double bradford[3][3] = {
243228 { 0.0389 , -0.0685 , 1.0296 }
244229};
245230
246- // Color Adaptation Matrices - Cat02 (default)
247- static const double cat02[ 3 ][ 3 ] = {
231+ // Color Adaptation Matrices - CAT02 (default)
232+ static const std::vector<std::vector< double >> CAT02 = {
248233 { 0.7328 , 0.4296 , -0.1624 },
249234 { -0.7036 , 1.6975 , 0.0061 },
250235 { 0.0030 , 0.0136 , 0.9834 }
251236};
252237
238+ static const std::vector<std::vector<double >> CAT02_inv = {
239+ { 1.0961238208355142 , -0.27886900021828726 , 0.18274517938277304 },
240+ { 0.45436904197535921 , 0.47353315430741177 , 0.072097803717229125 },
241+ { -0.0096276087384293551 , -0.0056980312161134198 , 1.0153256399545427 }
242+ };
243+
253244// clang-format on
254245
255246// Function to Open Directories
0 commit comments