what do you meant by a gamma corrected value for an image??

4 visualizaciones (últimos 30 días)
i want to apply a gamma correction value on an image

Respuesta aceptada

Walter Roberson
Walter Roberson el 6 de Oct. de 2015
Not all varieties of monitors react with linear brightness increase to linear increases in input signal.
For example if the brightness is proportional to the square of the voltage then half brightness might occur at 0.707 times the maximum voltage. In that particular case, if you had a data reading which was "x" fraction of the maximum reading, you would need to use sqrt(x) to calculate the output voltage to send in order to achieve the right linear brightness according to data reading.
This process of applying a non-linear mapping between data input and signal output is known as "gamma correction".
There is no one "right" way to do gamma correction. Fundamentally all you need is a function that maps between input data values and required output.
About the only thing you can be sure of for physical situations is that the function will be continuous and monotonic (increasing or decreasing), but it could be sqrt(), could be cube, could be exponential, could be an "S" curve.
This process of non-linear mappings to achieve different brightness is extended to digital values, in which case it does not necessarily hold that the function is continuous and monotonic. If you want to digitally map 0.3 to 0.5678 to be dark and other areas to be bright, you can do that with an appropriate calculation. Any input function that maps individual data values (or RGB combinations) into outputs in a manner that is position independent (and independent of surrounding values) is a potential gamma correction for digital purposes.
  2 comentarios
Vishnu R
Vishnu R el 6 de Oct. de 2015
Is this gamma correction is applicable for rgb images?
Walter Roberson
Walter Roberson el 6 de Oct. de 2015
"Any input function that maps individual data values ( or RGB combinations ) into outputs in a manner that is position independent (and independent of surrounding values) is a potential gamma correction for digital purposes."
That is, the output result for a given pixel needs to depend only on the value of the pixel, not on its location or surroundings. But the color components of the pixel can be handled differently or can be handled the same or some calculation involving all of the components can take place.
For example, rgb2hsv() would qualify as a gamma correction function. It probably would not be used for that purpose, but it qualifies in theory. The output result for any given pixel depends only upon the component values, not upon what surrounds it so it qualifies.
Not every gamma correction function is useful for any given purpose, and some gamma correction functions that might be very very useful in one context might be useless in another context.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Gamma Functions en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by