Patch for issue 186 -- blue pixels appearing when "avoid color clipping" is selected for the color boost tool, and black point is nonzero. Problem was roundoff error.

This commit is contained in:
Emil Martinec 2010-09-23 01:17:51 -05:00
parent bde7141939
commit e7dcacdb43

View File

@ -390,7 +390,8 @@ void ImProcFunctions::colorCurve (LabImage* lold, LabImage* lnew) {
}
}
double shift_a = params->colorShift.a * chroma_scale, shift_b = params->colorShift.b * chroma_scale;
float eps = 0.001;
double shift_a = params->colorShift.a * chroma_scale + eps, shift_b = params->colorShift.b * chroma_scale + eps;
short** oa = lold->a;
short** ob = lold->b;