3

Javaを使って画像の露出を調整したい。Java 2D には、この仕事をする既存の関数があることを知っています。しかし、色レベルでどのように機能するかも知りたいです。オンラインで調査を行ったところ、R、G、B に特定のパラメーターを掛けて露出オーバーを実現できると書かれていますが、パラメーターとは何ですか? 露出不足はどうですか?前もって感謝します!

4

1 に答える 1

2

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:

  • It needs to be monotonic (always increasing) so that lighter areas stay lighter than darker areas after the transformation
  • It needs to be smooth so that you don't create sudden jumps / banding in colour gradients
  • It needs to act on the range 0..1 since that is where your (normalised) RGB colour values are!

A simple example of such a function would be:

new component value = (old component value) ^ k

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.

于 2012-05-17T00:55:31.390 に答える