I’m currently looking for a way to auto-gamma-correct / enhance my photos. In the end I wrote the implementation for 3 papers Here’s the second which might be understood as followup to the AGCWD from my previous Post. The paper’s title is Contrast Enhancement of Brightness-Distorted Images by Improved Adaptive Gamma Correction and it basically enhances the AGCWD.

I do refer to the implementation ofas IAGCWD in the following.

Contents Transformation results Implementation Opinion References Transformation results All photos (these are photos I’ve taken) have been scaled and cropped to 1600x1200px and converted to PNG. I’m just using the experimental settings from the paper (α = 0.75 for dimmed, α = 0.25 for bright, T t = 112, r t = 0.3, r = 0.5)[1]. I’ve only picked pictures which indeed fall into the categories bright or dimmed according to the given paper[1]; remaining pictures won’t be processed by this technique, hence not shown here.
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
original
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
agcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
iagcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
original
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
agcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
iagcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
original
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
agcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
iagcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
original
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
agcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
iagcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
original
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
agcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
iagcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
original
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
agcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
iagcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
original
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
agcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
iagcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
original
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
agcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
iagcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
original
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
agcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
iagcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
original
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
agcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
iagcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
original
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
agcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
iagcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
original
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
agcwd
Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
iagcwd Implementation

The implementation is available under MIT license at Github

Opinion

Personally, except for a very few cases I almost always prefer the plain AGCWD. The implementation here just darkens the pictures too much and for bright pictures it also adds too much contrast. I tried a lower value for the adjustment parameter (0.1) which works better still the resulting images are too dark. Again: Always assuming that I properly implemented the paper. The only picture which I do indeed like with this implementation is the satellite dish you can see how the contrast is enhanced on the trees.

References Cao, Gang & Huang, Lihui & Tian, Huawei & Huang, Xianglin & Wang, Yongbin & Zhi, Ruicong. (2017). Contrast Enhancement of Brightness-Distorted Images by Improved Adaptive Gamma Correction. CAEE. 10.1016/j.compeleceng.2017.09.012. S. Huang, F. Cheng and Y. Chiu, Efficient Contrast Enhancement Using Adaptive Gamma Correction With Weighting Distribution,“ in IEEE Transactions on Image Processing, vol. 22, no. 3, pp. 1032-1041, March 2013. doi: 10.1109/TIP.2012.2226047

本文开发(php)相关术语:php代码审计工具 php开发工程师 移动开发者大会 移动互联网开发 web开发工程师 软件开发流程 软件开发工程师

代码区博客精选文章
分页:12
转载请注明
本文标题:Adaptive Gamma Correction for Brightness-Distorted Images with \Imagick and PHP
本站链接:https://www.codesec.net/view/610795.html


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 开发(php) | 评论(0) | 阅读(200)