%
% date of creation: 2020-01-19 11:41:20 
%

% Image: A_S_G2_T15_3.raw
% Backg.: A_bg_S_G2_T15_8.raw
% LSC Profile: A_lsc_para_100.txt

wb = [1.3674701269206522  1.0000000000000000  3.0111180126010058];

ctm = 	[ 1.5013809085898748  -0.0388654939009427  -0.4549331515415023
	 -0.5496058849185399   1.7961651974157675  -0.1857871462011420
	  0.0839846228359797  -1.1677572047791076   2.1497642579153187];

% Black Level Subtraction coefficients (red, green1, green2, blue): [0  0  0  0]

successional_color_offset = [-31.0493675887250580  -13.9517056667915950  -62.6473589678171410];
% Note: The additive offset is determined for 12-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 = [
      304.844,	1086.305,	 353.069,	 283.267,	 573.253,	 513.991, 
     1013.594,	 183.663,	 853.899,	 198.666,	 632.443,	1120.301, 
       85.123,	 195.339,	 591.849,	1114.751,	 718.529,	 139.310, 
     1160.459,	 797.107,	 508.856,	 264.701,	 136.671,	  55.231, 
];

target_raw_green = [
      287.591,	1011.713,	 591.455,	 431.299,	 716.336,	1161.479, 
      767.124,	 310.518,	 509.527,	 191.493,	1039.130,	1038.335, 
      145.094,	 454.699,	 294.326,	1226.047,	 453.681,	 415.810, 
     1544.274,	1069.708,	 684.475,	 352.932,	 180.980,	  68.619, 
];

target_raw_blue = [
      71.929,	 277.603,	 267.306,	 110.509,	 326.068,	 418.937, 
     115.133,	 213.435,	 123.610,	  90.681,	 194.960,	 153.604, 
     115.531,	 116.113,	  66.007,	 186.621,	 171.888,	 226.096, 
     498.237,	 349.166,	 224.127,	 117.109,	  61.897,	  25.379, 
];

avgRGB = [662.054,	 905.339,	 300.665,]; % average over background image!

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