Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Histogram linear vs. non-linear
#3
(Today, 07:03 AM)Ofnuts Wrote: I published functions to go from linear to gamma-corrected and vice-versa here: What is the gamma encoding and why are my color computations wrong?

Thank you for your reply and the link.
I understand that it is much better to do the calculation in the linear system, but, sorry, my mind and eyes work with the gamma corrected system.
What I'm trying to do is analyze the histogram and do a little automatic value correction. So I take the values from the histogram function that are in the gamma corrected system. 
Now, let's say I decide to increase the brightness a little bit with a spline like this: curve = [0.0, 0.0, 0.75, 0.875, 1.0, 1.0] in the gamma-corrected system. 
The calculation of the curves_spline function with this curve leads to a completely different result, as the function calculates the spline in the linear system. Due to the non-linearity of the conversion, it is not possible to simply convert the 0.75 in the spline definition to get the correct result.
In the upper row you can see the histogram with the correction spline on the leftside and original an result histogram on the right. In the lower row the same with the spline calculated in the linear system with the different result. 

Is there a way to get the result of the upper row by converting the spline definition or any other function?

   
Reply


Messages In This Thread
Histogram linear vs. non-linear - by Merlin - Yesterday, 05:14 PM
RE: Histogram linear vs. non-linear - by Merlin - 11 hours ago

Forum Jump: