Yesterday, 05:14 PM
When working with Gimp's histograms, you always have the choice of whether you want to display the x-axis linearly or non-linearly.
When working with python the function to get the histogram values has no paramter for the x-axis e.g.
t, mean, std_dev, median, pixels, counter, percentile = layer.histogram(Gimp.HistogramChannel.VALUE, 0.5, 0.6)
returns the values using the non-linear x-axis.
In contrast the function to change the histogram e.g.
t = layer1.curves_spline(Gimp.HistogramChannel.VALUE, curve)
calculates the spline on the linear x-axis.
I found this out by comparing the values with the manually created values in Gimp.
I need a possibility to gett the correction by spline on the non-linear x-axis.
Is there a way to achieve this?
When working with python the function to get the histogram values has no paramter for the x-axis e.g.
t, mean, std_dev, median, pixels, counter, percentile = layer.histogram(Gimp.HistogramChannel.VALUE, 0.5, 0.6)
returns the values using the non-linear x-axis.
In contrast the function to change the histogram e.g.
t = layer1.curves_spline(Gimp.HistogramChannel.VALUE, curve)
calculates the spline on the linear x-axis.
I found this out by comparing the values with the manually created values in Gimp.
I need a possibility to gett the correction by spline on the non-linear x-axis.
Is there a way to achieve this?