Changed "highlight compression" slider directionality to comport with prior versions of RT3, and relabelled it "Highlight rolloff" for descriptive accuracy.

This commit is contained in:
Emil Martinec
2010-10-19 09:06:21 -05:00
parent 3715bf42e3
commit 432d7ae581
2 changed files with 6 additions and 5 deletions

View File

@@ -597,7 +597,7 @@ TP_EXPOSURE_AUTOLEVELS;Auto Levels
TP_EXPOSURE_BLACKLEVEL;Black
TP_EXPOSURE_BRIGHTNESS;Brightness
TP_EXPOSURE_CLIP;Clip
TP_EXPOSURE_COMPRHIGHLIGHTS;Highlight compression
TP_EXPOSURE_COMPRHIGHLIGHTS;Highlight rolloff
TP_EXPOSURE_COMPRSHADOWS;Shadow compression
TP_EXPOSURE_CONTRAST;Contrast
TP_EXPOSURE_CURVEEDITOR;Tone Curve

View File

@@ -735,7 +735,7 @@ void CurveFactory::complexCurve (double ecomp, double black, double hlcompr, dou
float shoulderx = toex+(1-toey)/a;//point in x at which line of slope a starting at toe point reaches y=1
float shouldery;
if (shoulderx<1) {
shouldery = MAX(2*toey, 1-(1-shoulderx)*(1-hlcompr/100.0));
shouldery = MAX(2*toey, 1-(1-shoulderx)*(hlcompr/200.0));
shoulderx = shoulderx - (1-shouldery)/a;
} else {
shoulderx = 1;
@@ -749,13 +749,14 @@ void CurveFactory::complexCurve (double ecomp, double black, double hlcompr, dou
basecurvePoints.push_back(toey); //value at toe point
if (toex<1) {
basecurvePoints.push_back(0.25*toex+0.75*shoulderx); //toe point
basecurvePoints.push_back(0.25*toey+0.75*shouldery); //value at toe point
//add a point along the line between the toe point and shoulder point
basecurvePoints.push_back(0.25*toex+0.75*shoulderx); //mid point
basecurvePoints.push_back(0.25*toey+0.75*shouldery); //value at mid point
basecurvePoints.push_back(shoulderx); //shoulder point
basecurvePoints.push_back(shouldery); //value at shoulder point
if (shoulderx<1) {
basecurvePoints.push_back(1); // white point
basecurvePoints.push_back(1-0.5*(1-shoulderx)*(1-hlcompr/100.0)); // white point
basecurvePoints.push_back(1); // value at white point
}
}