Skip to content

Some histogram equalization methods to enhance image contrast, including AHE and CLAHE.

Notifications You must be signed in to change notification settings

lxcnju/histogram_equalization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

histogram_equalization

Some histogram equalization methods to enhance image contrast, including AHE and CLAHE.

  • 知乎链接
  • 代码架构
  • 方法
    • ImageOps HE
    • HE
    • AHE
    • CLAHE
    • Local Region Stretch HE
  • 结果展示

知乎(zhihu)链接

代码架构

  • contrast.py 各种直方图均衡化实现的脚本,ImageContraster类
  • main.py 测试,使用方法参考main.py
  • python3.6

方法

  • 代码实现了五种直方图均衡化的方法,分别是:1.利用PIL.ImageOps实现的直方图均衡化;2.自己实现的直方图均衡化HE;3.自适应直方图均衡化AHE;4.限制对比度自适应直方图均衡化CLAHE;5.自适应局部区域伸展直方图均衡化Local Region Stretch HE。其原理详细介绍见知乎链接。

结果展示

下面给出一些结果图片,每组有六张图片,分别是原图、ImageOps HE、HE、AHE、CLAHE、Local Region Stretch HE的结果对比:

About

Some histogram equalization methods to enhance image contrast, including AHE and CLAHE.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages