Init blur by levels

This commit is contained in:
Desmis
2020-03-25 18:06:32 +01:00
15 changed files with 316 additions and 143 deletions

View File

@@ -1209,28 +1209,28 @@ void WavCurve::Set(const std::vector<double> &curvePoints)
}
}
WavtmCurve::WavtmCurve() {}
Wavblcurve::Wavblcurve() {}
void WavtmCurve::Reset()
void Wavblcurve::Reset()
{
luttmCurve.reset();
lutblcurve.reset();
}
void WavtmCurve::Set(const Curve &pCurve)
void Wavblcurve::Set(const Curve &pCurve)
{
if (pCurve.isIdentity()) {
Reset(); // raise this value if the quality suffers from this number of samples
return;
}
luttmCurve(501); // raise this value if the quality suffers from this number of samples
lutblcurve(501); // raise this value if the quality suffers from this number of samples
for (int i = 0; i < 501; i++) {
luttmCurve[i] = pCurve.getVal(double(i) / 500.);
lutblcurve[i] = pCurve.getVal(double(i) / 500.);
}
}
void WavtmCurve::Set(const std::vector<double> &curvePoints)
void Wavblcurve::Set(const std::vector<double> &curvePoints)
{
if (!curvePoints.empty() && curvePoints[0] > FCT_Linear && curvePoints[0] < FCT_Unchanged) {
FlatCurve tcurve(curvePoints, false, CURVES_MIN_POLY_POINTS / 2);