%
% AWB Tool v3.14 (04-Jun-2018) 
% date of creation : 2024-11-12 18:46:07 
%
%

% Illuminations:
%  A (Outdoor)
%  D50 (Indoor)
%  D65 (Outdoor)
%  D75 (Outdoor)
%  F11 (TL84) (Outdoor)
%  F2 (CWF) (Outdoor)
%  H (Indoor)

% Sensor Sensitivity:
sensorFilename = 'sensitivity_default.txt'

% Multispectral database: 55 images

%

tau1 = {1  1  1  1  1  1  1  }
tau2 = {1  1  1  1  1  1  1  }

%


means = [0.2975162753851052  0.4514546372544621  0.2510290873604327]

PCAmatrix = [-0.7657010403631456  0.1373379184885083  0.6283631218746376
             0.2834935333538725  -0.8048633193355943  0.5213697859817218]
n0 = [-0.8728372149855058  -0.4880114713163473]
d0 = [-2.9752132546544869]



% Illumination A:
% ----------------

mu{1} = [-0.1454697076018600  -0.0576430020275083]

invCovMatrix{1} = [964.8329890697743849  1348.0618418783942616
                   1348.0618418783942616  4386.4006403898738427]

expScale{1} = [247.3245955607912094]


% Illumination D50:
% ----------------

mu{2} = [0.0076590940149708  -0.0658146847067209]

invCovMatrix{2} = [333.7645166785431456  -71.8853138182993092
                   -71.8853138182993092  1625.9396596181520636]

expScale{2} = [116.6849397191285220]


% Illumination D65:
% ----------------

mu{3} = [0.0711421851993863  -0.0696590460030971]

invCovMatrix{3} = [369.4257551936242976  -255.6004828000100417
                   -255.6004828000100417  1298.5574473079018389]

expScale{3} = [102.4528913655072273]


% Illumination D75:
% ----------------

mu{4} = [0.0771439935391381  -0.0580667161956016]

invCovMatrix{4} = [405.4896671484625017  -320.6063426655662738
                   -320.6063426655662738  1211.6180372669596181]

expScale{4} = [99.2022051757591186]


% Illumination F11 (TL84):
% ----------------

mu{5} = [-0.0278264463791169  -0.0978244503444206]

invCovMatrix{5} = [405.6566119596788553  -112.7400231799444583
                   -112.7400231799444583  1165.5159462587205326]

expScale{5} = [107.9545687888060002]


% Illumination F2 (CWF):
% ----------------

mu{6} = [-0.0129858181091210  -0.1224592869206900]

invCovMatrix{6} = [571.9037061849373913  -350.5110152247387987
                   -350.5110152247387987  1116.8930475186223248]

expScale{6} = [114.3146154536698020]


% Illumination H:
% ----------------

mu{7} = [-0.2190282900799158  -0.0306575570121590]

invCovMatrix{7} = [442.9360541709013432  -240.4941611033756317
                   -240.4941611033756317  1023.6521782829395306]

expScale{7} = [100.1001108342096302]


%
%for C drivers only: 

%Mean Values from SVD: 
%    0.29752f,  0.45145f,  0.25103f 

%PCA Matrix: 
%    -0.76570f,  0.13734f,  0.62836f, 
%    0.28349f,  -0.80486f,  0.52137f 

%

%// Center line of polygons {f_N0_Rg, f_N0_Bg, f_d}
%const tsIsiLine OV5630_tCenterLine = { -0.8728372149855058f,	-0.4880114713163473f,	-2.9752132546544869f};

%// parameter arrays for Rg/Bg color space clipping
%#define AWB_CLIP_PARM_ARRAY_SIZE_1 16
%#define AWB_CLIP_PARM_ARRAY_SIZE_2 16

%FLOAT  afRg1[AWB_CLIP_PARM_ARRAY_SIZE_1]      = { 0.82703f,	1.06553f,	1.15403f,	1.26203f,	1.34207f,	1.42283f,	1.50804f,	1.59654f,	1.68504f,	1.77354f,	1.89158f,	1.98533f,	2.10133f,	2.17588f,	2.22951f,	2.42460f};
%FLOAT  afMaxDist1[AWB_CLIP_PARM_ARRAY_SIZE_1] = { 0.11692f,	0.13390f,	0.14865f,	0.19072f,	0.22007f,	0.22191f,	0.18952f,	0.19379f,	0.19539f,	0.19404f,	0.22898f,	0.28253f,	0.37860f,	0.25429f,	0.15702f,	0.07657f};

%FLOAT  afRg2[AWB_CLIP_PARM_ARRAY_SIZE_2]      = { 0.82703f,	1.06553f,	1.15403f,	1.24253f,	1.33104f,	1.41954f,	1.50804f,	1.59654f,	1.65835f,	1.69709f,	1.76008f,	1.91810f,	2.03905f,	2.12755f,	2.21605f,	2.42460f};
%FLOAT  afMaxDist2[AWB_CLIP_PARM_ARRAY_SIZE_2] = { 0.18308f,	0.16610f,	0.15135f,	0.13770f,	0.12655f,	0.11735f,	0.11048f,	0.10621f,	0.15726f,	0.27442f,	0.34396f,	0.22810f,	0.13091f,	0.14729f,	0.16866f,	0.22343f};

%// parameter arrays for AWB out of range handling
%#define AWB_GLOBAL_FADE1_ARRAY_SIZE 16
%#define AWB_GLOBAL_FADE2_ARRAY_SIZE 16

%FLOAT afGlobalFade1[AWB_GLOBAL_FADE1_ARRAY_SIZE]         = { 0.80000f,	0.90297f,	1.00594f,	1.10891f,	1.21188f,	1.32571f,	1.41702f,	1.52079f,	1.62376f,	1.72673f,	1.82970f,	1.95150f,	2.11961f,	2.19085f,	2.24158f,	2.50460f};
%FLOAT afGlobalGainDistance1[AWB_GLOBAL_FADE1_ARRAY_SIZE] = { 0.12840f,	0.15168f,	0.17255f,	0.19150f,	0.20793f,	0.25518f,	0.28044f,	0.24024f,	0.24461f,	0.24515f,	0.24148f,	0.29480f,	0.41088f,	0.31112f,	0.17425f,	0.10560f};

%FLOAT afGlobalFade2[AWB_GLOBAL_FADE2_ARRAY_SIZE]         = { 0.80000f,	0.90297f,	1.00594f,	1.10891f,	1.21188f,	1.31485f,	1.41782f,	1.52079f,	1.62376f,	1.67085f,	1.75131f,	1.91389f,	2.03564f,	2.13861f,	2.24158f,	2.50460f};
%FLOAT afGlobalGainDistance2[AWB_GLOBAL_FADE2_ARRAY_SIZE] = { 0.27160f,	0.24832f,	0.22745f,	0.20850f,	0.19207f,	0.17835f,	0.16745f,	0.15976f,	0.15539f,	0.32716f,	0.37385f,	0.24992f,	0.18032f,	0.19985f,	0.22575f,	0.29440f};

%// values for the configuration file:
fRgProjIndoorMin = 0.82703
fRgProjMax = 2.4246
fRgProjMaxSky = 2.4646
fRgProjOutdoorMin = 1.7735
clipOutdoor = 'D50' 

%

%Illumination A: 
%Mean Value of Gaussian Mixture Model (1): 
%    -0.14547f,  -0.05764f 

%Inverse Covariance Matrix (1): 
%    964.83299f,  1348.06184f, 
%    1348.06184f,  4386.40064f 

%Factor in Gaussian Mixture Model (1): 
%    247.32460f 

%Thresholds for Switching (tau1 and tau2) (1): 
%    1.00000f,  1.00000f  

%

%Illumination D50: 
%Mean Value of Gaussian Mixture Model (2): 
%    0.00766f,  -0.06581f 

%Inverse Covariance Matrix (2): 
%    333.76452f,  -71.88531f, 
%    -71.88531f,  1625.93966f 

%Factor in Gaussian Mixture Model (2): 
%    116.68494f 

%Thresholds for Switching (tau1 and tau2) (2): 
%    1.00000f,  1.00000f  

%

%Illumination D65: 
%Mean Value of Gaussian Mixture Model (3): 
%    0.07114f,  -0.06966f 

%Inverse Covariance Matrix (3): 
%    369.42576f,  -255.60048f, 
%    -255.60048f,  1298.55745f 

%Factor in Gaussian Mixture Model (3): 
%    102.45289f 

%Thresholds for Switching (tau1 and tau2) (3): 
%    1.00000f,  1.00000f  

%

%Illumination D75: 
%Mean Value of Gaussian Mixture Model (4): 
%    0.07714f,  -0.05807f 

%Inverse Covariance Matrix (4): 
%    405.48967f,  -320.60634f, 
%    -320.60634f,  1211.61804f 

%Factor in Gaussian Mixture Model (4): 
%    99.20221f 

%Thresholds for Switching (tau1 and tau2) (4): 
%    1.00000f,  1.00000f  

%

%Illumination F11 (TL84): 
%Mean Value of Gaussian Mixture Model (5): 
%    -0.02783f,  -0.09782f 

%Inverse Covariance Matrix (5): 
%    405.65661f,  -112.74002f, 
%    -112.74002f,  1165.51595f 

%Factor in Gaussian Mixture Model (5): 
%    107.95457f 

%Thresholds for Switching (tau1 and tau2) (5): 
%    1.00000f,  1.00000f  

%

%Illumination F2 (CWF): 
%Mean Value of Gaussian Mixture Model (6): 
%    -0.01299f,  -0.12246f 

%Inverse Covariance Matrix (6): 
%    571.90371f,  -350.51102f, 
%    -350.51102f,  1116.89305f 

%Factor in Gaussian Mixture Model (6): 
%    114.31462f 

%Thresholds for Switching (tau1 and tau2) (6): 
%    1.00000f,  1.00000f  

%

%Illumination H: 
%Mean Value of Gaussian Mixture Model (7): 
%    -0.21903f,  -0.03066f 

%Inverse Covariance Matrix (7): 
%    442.93605f,  -240.49416f, 
%    -240.49416f,  1023.65218f 

%Factor in Gaussian Mixture Model (7): 
%    100.10011f 

%Thresholds for Switching (tau1 and tau2) (7): 
%    1.00000f,  1.00000f  
%
