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

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

wb = [2.0100752403266258  1.0000000000000000  3.0623723247919226];

ctm = 	[2.1643187594175832, -0.9096763832246434, -0.2546423761929402
	 -0.4636813923278295, 1.6888209265094021, -0.2251395341815726
	 -0.1422301414507232, -0.3324039430630131, 1.4746340845137362];

% 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 = [
     122.119,	 224.429,	 123.728,	 111.127,	 148.812,	 166.400, 
     239.018,	 103.044,	 195.389,	  96.954,	 192.447,	 260.399, 
      83.988,	 111.240,	 155.716,	 278.401,	 180.815,	  96.094, 
     307.041,	 235.034,	 174.653,	 124.340,	  96.099,	  78.141, 
];

target_raw_green = [
     152.040,	 293.002,	 208.948,	 169.515,	 230.176,	 371.894, 
     263.360,	 164.189,	 184.224,	 115.937,	 358.068,	 343.614, 
     116.690,	 211.256,	 135.094,	 420.639,	 185.942,	 187.900, 
     552.529,	 410.343,	 288.612,	 185.478,	 128.764,	  91.617, 
];

target_raw_blue = [
      87.328,	 125.615,	 131.522,	  88.996,	 145.987,	 166.985, 
      91.004,	 134.474,	  96.893,	  91.719,	 110.471,	  99.805, 
     108.248,	  95.744,	  81.030,	 106.455,	 119.249,	 131.018, 
     220.181,	 177.363,	 137.807,	 104.023,	  86.533,	  74.465, 
];

avgRGB = [69.386,	 139.472,	  45.544,]; % average over target image!

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

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