我有一个C#应用,我正在使用Emgu。
我想照亮枯燥的图像。当我使用EqualHist时,细节有点但有点太强了。有没有办法增强图像的现有细节,但不像EqualHist那样充满活力?感谢..
示例图片:
答案 0 :(得分:1)
尝试使用StretchContrast(AForge.NET)。 http://www.aforgenet.com/framework/docs/html/e7e63ac5-7c1b-5dc2-40b2-8c80e217a946.htm
更新: 我对颜色和光照校正知之甚少,但我可以推荐这些算法:
<强>全球强>: 灰色世界 - http://scien.stanford.edu/pages/labsite/2000/psych221/projects/00/trek/GWimages.html
(我认为存在C#版本)
code: http://www.fer.unizg.hr/ipg/resources/color_constancy
(repository at the bottom)
白色补丁 - http://staff.science.uva.nl/~gijsenij/colorconstancy/index_how.php
(我认为存在C#版本)
code: http://www.fer.unizg.hr/ipg/resources/color_constancy
(repository at the bottom)
本地:(执行本地更正): Light Random Sprays Retinex - http://en.wikipedia.org/wiki/Color_constancy
code: http://www.fer.unizg.hr/ipg/resources/color_constancy
(repository at the bottom)
代码是用C ++编写的,但它们易于阅读(和编译),因此您可以在样本上试用它们。
这些算法的问题在于其中一些算法很慢,无法直接应用于实时应用程序; http://www.fer.unizg.hr/ipg/resources/color_constancy上的代码大大提高了它们的性能(所有改进都是通过改变算法来完成的,而不是使用特殊的C ++技巧或SIMD指令)。