Skip to content

Adaptive Gamma Correction with Weighting Distribution in PHP with Imagick

License

Notifications You must be signed in to change notification settings

chani/AdaptiveGammaCorrection

Repository files navigation

Adaptive Gamma Correction

These are just some implementations of proposed methods in papers I've read which I did wrote while searching something which might be used to automatically enhance contrast / add gamma-correction to my photos. I've used \Imagick in PHP for that purpose. I'm mostly working on the CLI with the scripts.

  1. AGCWD Adaptive Gamma Correction with Weighting Distribution [1]
  2. IAGCWD Adaptive Gamma Correction with Weighting Distribution modified to enhance brightness-distorted pictures [2]
  3. AGCIE An adaptive gamma correction for image enhancement [3]

Example usage

$testImage = new Imagick('test.png');

// reference [1]
$agcwd = new ImageAGCWD($testImage);
$agcwd->writeImage('agcwd.png');

// reference [2]
$iagcwd = new ImageIAGCWD($testImage);
$iagcwd->writeImage('iagcwd.png');

// reference [3]
$agcie = new ImageAGCIE($testImage);
$agcie->writeImage('agcie.png');

Results

References

  1. 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
  2. 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.
  3. Rahman, Shanto & Rahman, Md. Mostafijur & Abdullah-Al-Wadud, M & Al-Quaderi, Golam Dastegir & Shoyaib, Mohammad. (2016). An adaptive gamma correction for image enhancement. EURASIP Journal on Image and Video Processing. 35. 10.1186/s13640-016-0138-1.

About

Adaptive Gamma Correction with Weighting Distribution in PHP with Imagick

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages