Retinex, only demosaic when enabled/disabled or Colorspace changes

This commit is contained in:
heckflosse
2015-09-13 00:39:55 +02:00
parent 2fd42e79ea
commit bc841d9808
10 changed files with 125 additions and 155 deletions

View File

@@ -526,28 +526,6 @@ void CurveFactory::curveDehaContL ( bool & dehacontlutili, const std::vector<dou
}
}
void CurveFactory::curveDehaHContL ( bool & dehaHcontlutili, const std::vector<double>& dehaclcurvePoints, LUTf & dehaclCurve, int skip)
{
bool needed = false;
DiagonalCurve* dCurve = NULL;
if (!dehaclcurvePoints.empty() && dehaclcurvePoints[0] != 0) {
dCurve = new DiagonalCurve (dehaclcurvePoints, CURVES_MIN_POLY_POINTS / skip);
if (dCurve && !dCurve->isIdentity()) {
needed = true;
dehaHcontlutili = true;
}
}
fillCurveArray(dCurve, dehaclCurve, skip, needed);
if (dCurve) {
delete dCurve;
dCurve = NULL;
}
}
// add curve Lab wavelet : Cont=f(L)
void CurveFactory::curveWavContL ( bool & wavcontlutili, const std::vector<double>& wavclcurvePoints, LUTf & wavclCurve, /*LUTu & histogramwavcl, LUTu & outBeforeWavCLurveHistogram,*/int skip)
{