Histogram equalization: Difference between revisions

Content deleted Content added
Line 54:
(Note: <math>k^\prime=-1 </math> when <math>\ k=0 </math> , however, it does not happen just because <math>\ k=0 </math> means that there is no pixel corresponding to that value.)
 
== OfOn color images ==
 
The above describes histogram equalization on a grayscale image. However it can also be used on color images by applying the same method separately to the Red, Green and Blue components of the [[RGB]] color values of the image. However, applying the same method on the Red, Green, and Blue components of an RGB image may yield dramatic changes in the image's [[color balance]] since the relative distributions of the color channels change as a result of applying the algorithm. However, if the image is first converted to another color space, [[Lab color space]], or [[HSL and HSV|HSL/HSV color space]] in particular, then the algorithm can be applied to the [[luminance]] or value channel without resulting in changes to the hue and saturation of the image.<ref>S. Naik and C. Murthy, "[https://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=1257395 Hue-preserving color image enhancement without gamut problem]," IEEE Trans. Image Processing, vol. 12, no. 12, pp. 1591–1598, Dec. 2003</ref>