%
% date of creation: 2024-11-12 18:39:16 
%

% Image: color-A.raw
% Backgr.: N/A
% LSC Profile: N/A

wb = [1.2173157020260430  1.0000000000000000  3.6881867893734475];

ctm = 	[1.2767075267232326, 0.4085788994082666, -0.6852864261314991
	 -0.5298887448397995, 1.9121317622967196, -0.3822430174569199
	 -0.0175448196447437, -0.8466099463682092, 1.8641547660129529];

% Black Level Subtraction coefficients (red, green1, green2, blue)(Already subtracted with LSC.txt loaded): [65  65  65  65]

successional_color_offset = [0 0 0];
% Note: The additive offset is determined for 10-bit images!

% Weights for fitting:
%
% 1  1  1  1  1  1
% 1  1  1  1  1  1
% 1  2  2  2  1  1
% 1  1  1  1  1  1

%This output is for internal data exchange between the MATLAB tools. Do not edit!
%These values are the average of the linear raw color checker patches (with BLS+LSC and shading compensation using the background image (but without the BLS values entered in the GUI)!

target_raw_red = [
     202.033,	 481.372,	 201.015,	 172.821,	 313.726,	 262.990, 
     469.283,	 152.400,	 425.064,	 155.158,	 331.697,	 520.795, 
     102.029,	 148.279,	 350.188,	 532.492,	 392.648,	 119.991, 
     559.230,	 412.555,	 289.701,	 185.855,	 127.288,	  90.400, 
];

target_raw_green = [
     185.089,	 406.793,	 267.285,	 210.002,	 314.826,	 476.108, 
     338.447,	 195.733,	 258.976,	 138.684,	 442.892,	 436.939, 
     126.735,	 244.611,	 190.577,	 518.039,	 253.815,	 221.648, 
     661.476,	 489.218,	 341.417,	 213.696,	 142.887,	  96.379, 
];

target_raw_blue = [
      91.496,	 144.876,	 138.451,	  95.853,	 155.974,	 185.864, 
     102.158,	 130.810,	 106.078,	  91.594,	 126.868,	 114.173, 
     102.842,	 102.840,	  89.590,	 123.728,	 122.022,	 134.008, 
     224.689,	 180.058,	 140.033,	 105.339,	  86.825,	  74.398, 
];

avgRGB = [177.299,	 215.829,	  58.519,]; % average over target image!

saturation = [100]; % Target CC saturation value!

%-------------------------------------------------- 
