Implementation of a bunch of Automatic White-Balancing (AWBE algorithms), using JAX. Comparisons and experiments can be found in docs
folder.
Implemented Algorithms | Example Results | Notes | License
- Gray World (GW), based on gray world assumption. See
awblib.gw
. - Colour Histogram Stretching (CHS). See
awblib.chs
. - Average Equalization and Threshold (AAET). See
awblib.aaet
. - Histogram Matching (AWB-HM), based on histogram matching. See
awblib.hm
. - Dynamic Histogram Matching (AWB-DHM), based on histogram matching and channel selection. See
awblib.dhm
.
T. Gollanapalli, V. R. Peddigari and P. S. Madineni, "Auto white balance using dynamic histogram matching for AMOLED panels," 2017 IEEE International Conference on Consumer Electronics-Asia (ICCE-Asia), Bengaluru, India, 2017, pp. 41-46, doi: 10.1109/ICCE-ASIA.2017.8307848.
Explanations about our implementation is here.
Chengqiang Huang, Qi Zhang, Hui Wang, and Songlin Feng, "A Low Power and Low Complexity Automatic White Balance Algorithm for AMOLED Driving Using Histogram Matching," J. Display Technol. 11, 53-59 (2015)
Explanations about our implementation is here. This implementation largely reproduced the results.
S. Wang, Y. Zhang, P. Deng and F. Zhou, "Fast automatic white balancing method by color histogram stretching," 2011 4th International Congress on Image and Signal Processing, Shanghai, China, 2011, pp. 979-983, doi: 10.1109/CISP.2011.6100338.
The implementation largely reproduced the results.
Shen-Chuan Tai, Tzu-Wen Liao, Yi-Ying Chang and Chih - Pei Yeh, "Automatic White Balance algorithm through the average equalization and threshold," 2012 8th International Conference on Information Science and Digital Content Technology (ICIDT2012), Jeju, Korea (South), 2012, pp. 571-576.
See docs
for more.
Actually no paper has mentioned that if they are invariant to colour space or they depend on a specific colour space. As far as I know, most non-ML image processing algorithms require linear RGB; this processing is not done in this module yet.
The difference is performance (qualitatively, measured by overlapping area (OA) in colour histogram) is largely due to the discrete nature of the small image and thus the resultant histogram is often very discrete.