I want to adjust exposure of an image using Java. I know in Java 2D there are existing functions doing this job. But I also want to know how it works on color level. I did some research online and it says we can multiply R,G,B with certain parameters to achieve overexposure, what are the parameters? and how about underexposure? Thanks in advance!
Share
You might find this page useful, has some quite detailed information on generic exposure functions:
In general however, exposure adjustment is all about shifting the colour curves using some form of smooth monotonic function what maps the range 0..1 to the same 0..1 range:
A simple example of such a function would be:
Here a parameter value of k>1 would darken the image, k<1 would lighten the image. You can play with the parameter and the formula until you get an effect you like.