%
% date of creation: 2024-11-06 11:31:45 
%

% Image: color-CWF.raw
% Backgr.: N/A
% LSC Profile: LSC gains inherit the former module data

wb = [2.0312734037480196  1.0000000000000000  3.0849064377777133];

ctm = 	[2.8842097218389395, -1.3191672352615458, -0.5650424865773938
	 -0.7150101229811653, 2.2112709667051336, -0.4962608437239682
	 -0.1656736257492177, -0.7993007066803830, 1.9649743324296007];

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

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  1  1  1  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 = [
      59.126,	 162.120,	  59.793,	  47.132,	  86.355,	 106.723, 
     178.940,	  38.241,	 130.993,	  31.955,	 129.797,	 202.889, 
      19.651,	  46.907,	  90.523,	 214.754,	 117.739,	  32.103, 
     251.051,	 174.103,	 111.387,	  60.400,	  32.106,	  13.853, 
];

target_raw_green = [
      90.175,	 231.439,	 146.129,	 106.472,	 169.980,	 321.331, 
     203.596,	 100.049,	 119.959,	  51.595,	 297.886,	 288.398, 
      53.435,	 148.272,	  70.531,	 357.869,	 123.254,	 127.335, 
     504.100,	 352.757,	 227.287,	 122.858,	  65.763,	  28.289, 
];

target_raw_blue = [
      23.282,	  61.324,	  67.623,	  24.013,	  83.284,	 106.397, 
      26.784,	  69.666,	  31.912,	  26.717,	  46.463,	  35.823, 
      44.245,	  30.785,	  15.997,	  41.455,	  55.236,	  68.028, 
     159.086,	 114.333,	  73.845,	  39.409,	  21.559,	   9.470, 
];

avgRGB = [105.932,	 215.822,	  70.222,]; % average over target image!

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

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