Init blur by levels
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user