Skip to content

Commit

Permalink
mkssf: some more accurate defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
hanatos committed Oct 24, 2024
1 parent 3311054 commit e3db671
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/tools/clut/src/dngproc.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ dng_profile_fill(
}
if(illuminant == 2)
{ // D65 in XYZ (illum E)
p->wb[0] = 0.3127;
p->wb[1] = 0.329;
p->wb[0] = 0.31272;
p->wb[1] = 0.32903;
p->wb[2] = 1.0-p->wb[0]-p->wb[1];
}

Expand Down
4 changes: 2 additions & 2 deletions src/tools/clut/src/mkssf.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
// - cfa model: plain gauss sigmoid pca
// - optimiser: gauss/newton adam nelder/mead
// - parameter: number of iterations
static int num_it = 30;
static int num_it = 80;
static int num_epochs = 6;
static int cfa_model = 2; // default to gauss
static int cfa_num_coeff = 20;
static int cfa_num_coeff = 30;
static double cfa_param[3*36] = {0.1}; // init to something. zero has zero derivatives and is thus bad.

static double ill[2][CIE2_SAMPLES]; // tabulated illuminants for the two target shots
Expand Down

0 comments on commit e3db671

Please sign in to comment.