Prepare rtengine for CH curve

This commit is contained in:
Desmis
2020-07-13 17:32:38 +02:00
parent b6b03fd975
commit 32329f306f
8 changed files with 97 additions and 12 deletions

View File

@@ -1283,6 +1283,35 @@ public:
}
};
class LocCHCurve
{
private:
LUTf lutLocCHCurve; // 0xffff range
void Set(const Curve &pCurve);
public:
float sum;
virtual ~LocCHCurve() {};
LocCHCurve();
void Reset();
bool Set(const std::vector<double> &curvePoints);
float getSum() const
{
return sum;
}
float operator[](float index) const
{
return lutLocCHCurve[index];
}
operator bool (void) const
{
return lutLocCHCurve;
}
};
class LocretigainCurve
{
private: