2
votes

Is gamma correction algorithm same for RGB as for grayscale images?

I know how to do gamma correction for one-channel grayscale image. Do I do the same thing for all channels in RGB image? Or is there a different algorithm?

THanks

2

2 Answers

3
votes

You can use different values for gamma on each of the channels, but yes it is the same algorithm.

0
votes

You can convert the RGB image to HSL color space and apply the gamma only on the Luma channel.