开发者

Histogram Equalization

I am a beginner in Python. I want to make a small project on histogram equalisation. Basical开发者_如何学Cly 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's PIL module has methods for controlling contrast, color, and cropping.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜