Change microcontrast uniformity adjuster range, fixes #5129
This commit is contained in:
parent
d43ccc5e81
commit
b9942422e7
@ -12,7 +12,7 @@ Enabled=true
|
|||||||
Contrast=15
|
Contrast=15
|
||||||
Matrix=false
|
Matrix=false
|
||||||
Strength=20
|
Strength=20
|
||||||
Uniformity=50
|
Uniformity=5
|
||||||
|
|
||||||
[RAW]
|
[RAW]
|
||||||
CA=true
|
CA=true
|
||||||
|
@ -12,7 +12,7 @@ Enabled=true
|
|||||||
Contrast=15
|
Contrast=15
|
||||||
Matrix=false
|
Matrix=false
|
||||||
Strength=20
|
Strength=20
|
||||||
Uniformity=50
|
Uniformity=5
|
||||||
|
|
||||||
[RAW]
|
[RAW]
|
||||||
CA=true
|
CA=true
|
||||||
|
@ -643,7 +643,7 @@ BENCHFUN
|
|||||||
const int k = params->sharpenMicro.matrix ? 1 : 2;
|
const int k = params->sharpenMicro.matrix ? 1 : 2;
|
||||||
// k=2 matrix 5x5 k=1 matrix 3x3
|
// k=2 matrix 5x5 k=1 matrix 3x3
|
||||||
const int width = W, height = H;
|
const int width = W, height = H;
|
||||||
const int unif = params->sharpenMicro.uniformity / 10.0f; //put unif between 0 to 10
|
const int unif = params->sharpenMicro.uniformity;
|
||||||
const float amount = (k == 1 ? 2.7f : 1.f) * params->sharpenMicro.amount / 1500.0f; //amount 2000.0 quasi no artifacts ==> 1500 = maximum, after artifacts, 25/9 if 3x3
|
const float amount = (k == 1 ? 2.7f : 1.f) * params->sharpenMicro.amount / 1500.0f; //amount 2000.0 quasi no artifacts ==> 1500 = maximum, after artifacts, 25/9 if 3x3
|
||||||
|
|
||||||
if (settings->verbose) {
|
if (settings->verbose) {
|
||||||
|
@ -1149,7 +1149,7 @@ SharpenMicroParams::SharpenMicroParams() :
|
|||||||
matrix(false),
|
matrix(false),
|
||||||
amount(20.0),
|
amount(20.0),
|
||||||
contrast(20.0),
|
contrast(20.0),
|
||||||
uniformity(50.0)
|
uniformity(5)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3962,7 +3962,13 @@ int ProcParams::load(const Glib::ustring& fname, ParamsEdited* pedited)
|
|||||||
pedited->sharpenMicro.contrast = true;
|
pedited->sharpenMicro.contrast = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
assignFromKeyfile(keyFile, "SharpenMicro", "Uniformity", pedited, sharpenMicro.uniformity, pedited->sharpenMicro.uniformity);
|
if (ppVersion >= 346) {
|
||||||
|
assignFromKeyfile(keyFile, "SharpenMicro", "Uniformity", pedited, sharpenMicro.uniformity, pedited->sharpenMicro.uniformity);
|
||||||
|
} else {
|
||||||
|
double temp;
|
||||||
|
assignFromKeyfile(keyFile, "SharpenMicro", "Uniformity", pedited, temp, pedited->sharpenMicro.uniformity);
|
||||||
|
sharpenMicro.uniformity = temp / 10;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keyFile.has_group("Vibrance")) {
|
if (keyFile.has_group("Vibrance")) {
|
||||||
|
@ -531,7 +531,7 @@ struct SharpenMicroParams {
|
|||||||
bool matrix;
|
bool matrix;
|
||||||
double amount;
|
double amount;
|
||||||
double contrast;
|
double contrast;
|
||||||
double uniformity;
|
int uniformity;
|
||||||
|
|
||||||
SharpenMicroParams();
|
SharpenMicroParams();
|
||||||
|
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
// This number has to be incremented whenever the PP3 file format is modified or the behaviour of a tool changes
|
// This number has to be incremented whenever the PP3 file format is modified or the behaviour of a tool changes
|
||||||
#define PPVERSION 345
|
#define PPVERSION 346
|
||||||
#define PPVERSION_AEXP 301 //value of PPVERSION when auto exposure algorithm was modified
|
#define PPVERSION_AEXP 301 //value of PPVERSION when auto exposure algorithm was modified
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Log of version changes
|
Log of version changes
|
||||||
|
346 2019-01-01
|
||||||
|
changed microcontrast uniformity
|
||||||
345 2018-10-21
|
345 2018-10-21
|
||||||
dual demosaic auto contrast threshold
|
dual demosaic auto contrast threshold
|
||||||
344 2018-10-04
|
344 2018-10-04
|
||||||
|
@ -40,7 +40,7 @@ SharpenMicro::SharpenMicro () : FoldableToolPanel(this, "sharpenmicro", M("TP_SH
|
|||||||
amount->setAdjusterListener (this);
|
amount->setAdjusterListener (this);
|
||||||
amount->show();
|
amount->show();
|
||||||
|
|
||||||
uniformity = Gtk::manage(new Adjuster (M("TP_SHARPENMICRO_UNIFORMITY"), 0, 100, 10, 50));
|
uniformity = Gtk::manage(new Adjuster (M("TP_SHARPENMICRO_UNIFORMITY"), 0, 10, 1, 5));
|
||||||
uniformity->setAdjusterListener (this);
|
uniformity->setAdjusterListener (this);
|
||||||
uniformity->show();
|
uniformity->show();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user