Image Processing On Line (Oct 2011)

Simplest Color Balance

  • Nicolas Limare,
  • Jose-Luis Lisani,
  • Jean-Michel Morel,
  • Ana Belén Petro,
  • Catalina Sbert

DOI
https://doi.org/10.5201/ipol.2011.llmps-scb
Journal volume & issue
Vol. 1
pp. 297 – 315

Abstract

Read online

In this paper we present the simplest possible color balance algorithm. The assumption underlying this algorithm is that the highest values of R, G, B observed in the image must correspond to white, and the lowest values to obscurity. The algorithm simply stretches, as much as it can, the values of the three channels Red, Green, Blue (R, G, B), so that they occupy the maximal possible range [0, 255] by applying an affine transform ax+b to each channel. Since many images contain a few aberrant pixels that already occupy the 0 and 255 values, the proposed method saturates a small percentage of the pixels with the highest values to 255 and a small percentage of the pixels with the lowest values to 0, before applying the affine transform.