started working on proof-of-concept histogram matching

This commit is contained in:
Alberto Griggio
2018-01-17 01:12:13 +01:00
parent c139744647
commit bb56d73cc8
15 changed files with 323 additions and 3 deletions

View File

@@ -57,14 +57,18 @@ protected:
Adjuster* saturation;
MyComboBoxText* toneCurveMode;
MyComboBoxText* toneCurveMode2;
Gtk::ToggleButton *histmatching;
bool clipDirty, lastAuto;
sigc::connection autoconn, neutralconn, tcmodeconn, tcmode2conn;
sigc::connection histmatchconn;
CurveEditorGroup* curveEditorG;
CurveEditorGroup* curveEditorG2;
DiagonalCurveEditor* shape;
DiagonalCurveEditor* shape2;
rtengine::ProcEvent EvHistMatching;
// used temporarily in eventing
double nextExpcomp;
int nextBrightness;
@@ -73,6 +77,10 @@ protected:
int nextHlcompr;
int nextHlcomprthresh;
bool nextHLRecons;
rtengine::procparams::ToneCurveParams::TcMode nextToneCurveMode;
std::vector<double> nextToneCurve;
void setHistmatching(bool enabled);
public:
ToneCurve ();
@@ -107,6 +115,10 @@ public:
bool isCurveExpanded ();
void updateCurveBackgroundHistogram (LUTu & histToneCurve, LUTu & histLCurve, LUTu & histCCurve,/* LUTu & histCLurve, LUTu & histLLCurve,*/ LUTu & histLCAM, LUTu & histCCAM, LUTu & histRed, LUTu & histGreen, LUTu & histBlue, LUTu & histLuma, LUTu & histLRETI);
void histmatchingToggled();
void autoMatchedToneCurveChanged(rtengine::procparams::ToneCurveParams::TcMode curveMode, const std::vector<double> &curve);
bool histmatchingComputed();
void setRaw (bool raw);
void hrenabledChanged ();