Add CL=f(H) curve to Color and Light mask

This commit is contained in:
Desmis
2019-01-11 16:05:00 +01:00
parent a4325e4cc0
commit 9d1104517b
17 changed files with 181 additions and 23 deletions

View File

@@ -956,6 +956,7 @@ void ParamsEdited::initFrom(const std::vector<rtengine::procparams::ProcParams>&
locallab.spots.at(j).HHcurve = locallab.spots.at(j).HHcurve && pSpot.HHcurve == otherSpot.HHcurve;
locallab.spots.at(j).CCmaskcurve = locallab.spots.at(j).CCmaskcurve && pSpot.CCmaskcurve == otherSpot.CCmaskcurve;
locallab.spots.at(j).LLmaskcurve = locallab.spots.at(j).LLmaskcurve && pSpot.LLmaskcurve == otherSpot.LLmaskcurve;
locallab.spots.at(j).HHmaskcurve = locallab.spots.at(j).HHmaskcurve && pSpot.HHmaskcurve == otherSpot.HHmaskcurve;
locallab.spots.at(j).invers = locallab.spots.at(j).invers && pSpot.invers == otherSpot.invers;
// Exposure
locallab.spots.at(j).expexpose = locallab.spots.at(j).expexpose && pSpot.expexpose == otherSpot.expexpose;
@@ -2606,6 +2607,10 @@ void ParamsEdited::combine(rtengine::procparams::ProcParams& toEdit, const rteng
toEdit.locallab.spots.at(i).LLmaskcurve = mods.locallab.spots.at(i).LLmaskcurve;
}
if (locallab.spots.at(i).HHmaskcurve) {
toEdit.locallab.spots.at(i).HHmaskcurve = mods.locallab.spots.at(i).HHmaskcurve;
}
if (locallab.spots.at(i).invers) {
toEdit.locallab.spots.at(i).invers = mods.locallab.spots.at(i).invers;
}
@@ -3918,6 +3923,7 @@ LocallabParamsEdited::LocallabSpotEdited::LocallabSpotEdited(bool v) :
HHcurve(v),
CCmaskcurve(v),
LLmaskcurve(v),
HHmaskcurve(v),
invers(v),
// Exposure
expexpose(v),
@@ -4049,6 +4055,7 @@ void LocallabParamsEdited::LocallabSpotEdited::set(bool v)
HHcurve = v;
CCmaskcurve = v;
LLmaskcurve = v;
HHmaskcurve = v;
invers = v;
// Exposure
expexpose = v;