简体   繁体   中英

Histogram Equalization

I am a beginner in Python. I want to make a small project on histogram equalisation. Basically I want to include changing contrast, color and crop option etc in my project. I am blank right now. Please suggest something. I am very keen to make this project but how to start?

Python的PIL模块具有控制对比度,颜色裁剪的方法

You can use PythonMagick . It suports histogram equalization:

import PythonMagick
img = PythonMagick.Image("original.png")
img.equalize()
img.write("equalized.png")

PythonMagick is not very well documented itself, but its API directly corresponds to Magick++ API . Use Magick++ documentation for reference.

If PIL is enough for you, stick with PIL, it is better supported. I installed PythonMagick from the Ubuntu package, the project page does not open for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM