[英]Histogram Equalization
I am a beginner in Python. 我是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?
我非常想做这个项目,但是如何开始呢?
You can use PythonMagick . 您可以使用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 . PythonMagick本身没有很好的文档记录,但是其API直接对应于Magick ++ API 。 Use Magick++ documentation for reference.
使用Magick ++文档作为参考。
If PIL is enough for you, stick with PIL, it is better supported. 如果PIL对您足够,请坚持使用PIL,它会得到更好的支持。 I installed PythonMagick from the Ubuntu package, the project page does not open for me.
我从Ubuntu软件包中安装了PythonMagick,但无法打开项目页面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.