Change ACES matrix with Bradford D50 D60

This commit is contained in:
Desmis
2018-04-10 09:24:25 +02:00
parent 6bc6e7b3a7
commit b5f4cbd728
10 changed files with 2719 additions and 2592 deletions

View File

@@ -76,14 +76,14 @@ public:
{
if (is_double) {
return
std::fabs (bottom_left - rhs.bottom_left) < 1e-10
&& std::fabs (top_left - rhs.top_left) < 1e-10
&& std::fabs (bottom_right - rhs.bottom_right) < 1e-10
&& std::fabs (top_right - rhs.top_right) < 1e-10;
std::fabs(bottom_left - rhs.bottom_left) < 1e-10
&& std::fabs(top_left - rhs.top_left) < 1e-10
&& std::fabs(bottom_right - rhs.bottom_right) < 1e-10
&& std::fabs(top_right - rhs.top_right) < 1e-10;
} else {
return
std::fabs (bottom_left - rhs.bottom_left) < 1e-10
&& std::fabs (top_left - rhs.top_left) < 1e-10;
std::fabs(bottom_left - rhs.bottom_left) < 1e-10
&& std::fabs(top_left - rhs.top_left) < 1e-10;
}
}
@@ -113,7 +113,7 @@ public:
return top_left;
}
T getBottomLeft() const
T getBottomLeft() const
{
return bottom_left;
}
@@ -123,7 +123,7 @@ public:
return top_left;
}
T getBottomRight() const
T getBottomRight() const
{
return bottom_right;
}
@@ -173,7 +173,7 @@ public:
// RV: Type of the value on the X axis
// RV2: Type of the maximum value on the Y axis
template <typename RT, typename RV, typename RV2>
RT multiply (RV x, RV2 y_max) const
RT multiply(RV x, RV2 y_max) const
{
const double val = x;
@@ -292,8 +292,7 @@ struct ToneCurveParams {
/**
* Parameters of Retinex
*/
struct RetinexParams
{
struct RetinexParams {
bool enabled;
std::vector<double> cdcurve;
std::vector<double> cdHcurve;
@@ -339,8 +338,7 @@ struct RetinexParams
/**
* Parameters of the luminance curve
*/
struct LCurveParams
{
struct LCurveParams {
bool enabled;
std::vector<double> lcurve;
std::vector<double> acurve;
@@ -367,7 +365,7 @@ struct LCurveParams
/**
* Parameters for local contrast
*/
*/
struct LocalContrastParams {
bool enabled;
int radius;
@@ -1341,7 +1339,7 @@ struct RAWParams {
static const std::vector<const char*>& getMethodStrings();
static Glib::ustring getMethodString(Method method);
};
};
BayerSensor bayersensor; ///< RAW parameters for Bayer sensors
XTransSensor xtranssensor; ///< RAW parameters for X-Trans sensors
@@ -1469,7 +1467,7 @@ public:
/** Creates a new instance of ProcParams.
* @return a pointer to the new ProcParams instance. */
static ProcParams* create ();
static ProcParams* create();
/** Destroys an instance of ProcParams.
* @param pp a pointer to the ProcParams instance to destroy. */