views:

46

answers:

2

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?

A: 

Python's PIL module has methods for controlling contrast, color, and cropping.

unutbu
A: 

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.

jetxee