m < 0.5 In this case, the function is âattractedâ to the histogram point [0, 1] (upper left corner). First case is trivial. The latter two are symmetric around y=x line ...
Midtones transfer function as rational Bezier Our goal is to get the function in form of y=f(x), where x,y are from . This function is further parametrized by value m (midtones). It goes through the point [m, 0.5]. Used curve is rational Bezier curve of 2nd degree, defined by three points and three weights. We can split the problem to three parts, according to midtones value: ● ●
●
m = 0.5 In this case, y=f(x) is simply y = x m > 0.5 In this case, the function is “attracted” to the histogram point [1, 0] (lower right corner). m