Fixed Artifacts when moving the L curve blackpoint issue2144

This commit is contained in:
jdc
2013-12-21 08:38:17 +01:00
parent a0a7efd4e7
commit f3c2ce6425
2 changed files with 9 additions and 6 deletions

View File

@@ -356,8 +356,8 @@ void CurveFactory::curveCL ( bool & clcutili,const std::vector<double>& clcurveP
LUTf dCcurve(65536,0);
float val;
for (int i=0; i<48000; i++) { //# 32768*1.414 approximation maxi for chroma
dCcurve[i] = (float)i / 47999.0;
for (int i=0; i<50000; i++) { //# 32768*1.414 approximation maxi for chroma
dCcurve[i] = (float)i / 49999.0;
}
if (outBeforeCLurveHistogram)
@@ -373,7 +373,7 @@ void CurveFactory::curveCL ( bool & clcutili,const std::vector<double>& clcurveP
if (dCurve && !dCurve->isIdentity())
{needed = true;clcutili=true;}
}
for (int i=0; i<=48000; i++) {//32768*1.414 + ...
for (int i=0; i<=50000; i++) {//32768*1.414 + ...
float val;
if (histNeededCL) {
float hval = dCcurve[i];