%
% date of creation: 2024-11-12 18:41:23 
%

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

wb = [0.9770305688358554  1.0000000000000000  4.5788116621411934];

ctm = 	[1.1329105233734322, 0.8273491954216375, -0.9602597187950698
	 -0.6343282753408094, 1.9932891916876347, -0.3589609163468254
	 -0.0406225713882951, -1.1034431176081627, 2.1440656889964580];

% 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 = [
     178.996,	 418.646,	 177.036,	 153.942,	 276.728,	 223.104, 
     407.252,	 138.770,	 375.624,	 143.736,	 285.975,	 450.440, 
      96.688,	 133.609,	 318.255,	 464.914,	 352.361,	 110.261, 
     492.197,	 365.354,	 258.003,	 168.650,	 118.700,	  87.346, 
];

target_raw_green = [
     147.914,	 303.663,	 193.871,	 160.756,	 229.106,	 322.814, 
     267.397,	 147.184,	 210.537,	 116.033,	 319.852,	 333.395, 
     103.763,	 182.527,	 164.056,	 390.144,	 204.498,	 160.555, 
     478.261,	 358.566,	 255.109,	 167.169,	 118.452,	  87.000, 
];

target_raw_blue = [
      80.106,	 110.964,	 101.869,	  82.265,	 111.990,	 126.624, 
      89.718,	  97.144,	  90.508,	  79.341,	 101.536,	  97.376, 
      83.478,	  86.532,	  82.268,	 103.907,	  97.533,	  99.845, 
     152.918,	 128.244,	 106.029,	  87.147,	  77.173,	  70.404, 
];

avgRGB = [137.289,	 134.136,	  29.295,]; % average over target image!

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

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