几种颜色校正算法

colorcorrect的Python项目详细描述


颜色正确 作者:Shunsuke Aihara-http://argmax.jp

日期:

February 2012

说明:

Imprement some of color correction algorithms

要求:

python2.6 or later
numpy
Pillow

安装:

% python setup.py build
% python setup.py install

弹劾算法:

gray world
     colorcorrect.algorithm.gray_world
     usage: image
max white
    colorcorrect.algorithm.max_white
    usage: image
stretch
    colorcorrect.algorithm.stretch
    usage: image
retinex
    colorcorrect.algorithm.retinex
    usage: image
retinex with adjust
        colorcorrect.algorithm.retinex_with_adjust
        usage: image
standard deviation weighted grey world
         colorcorrect.algorithm.standard_deviation_weighted_grey_world
         usage: image,subblock width(default:20), subblock height(default:20)
standard deviation and luminance weighted gray world
         colorcorrect.algorithm.standard_deviation_and_luminance_weighted_gray_world
         usage: image,subblock width(default:20), subblock height(default:20)
luminance weighted gray world
          colorcorrect.algorithm.luminance_weighted_gray_world
         usage: image,subblock width(default:20), subblock height(default:20)
automatic color equalization
          colorcorrect.algorithm.automatic_color_equalization
          usage: image,slope(default:10),limit(default:1000)

示例用法:

>>> import Image
>>> import colorcorrect.algorithm as cca
>>> from colorcorrect.util import from_pil, to_pil
>>> img = Image.open('/path/to/image')
>>> to_pil(cca.stretch(from_pil(img))).show()

参考文献:

Denis. Nikitenko, M. Wirth and K. Trudel, "Applicability Of White-Balancing Algorithms to Restoring Faded Colour Slides: An Empirical Evaluation.", Journal of Multimedia, vol. 3, no. 5, 2008.
HK. Lam, OC. Au and CW. Wong, "Automatic white balancing using luminance component and standard deviation of RGB components", in Proc. ICASSP, 2004.
A. Rizzi, C. Gatta and D. Marini, "A new algorithm for unsupervised global and local color correction.", Pattern Recognition Letters, vol. 24, no. 11, 2003.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java为什么程序显示空结果?   java应用程序在测试设备上调试时工作正常,但在发布版apk中没有,它没有获得post。来自firebase的类变量   java Android:从主活动按钮确定在listview中选中哪个复选框   在Spring中添加@OneToOne注释时启动ApplicationContext时发生java错误   用JAVA Android实现矩阵计算的最快方法   SpringJava语义有没有更好的编写方法?   java从hashmap中减去两个值后返回最小差值的键?   Java中的静态初始化顺序:Netty 4.0.7的例外   java如何检查用户输入是否为字符串   循环Java计数单词索引   java如何使用以下代码将视频流传输到Android异步Http服务器?   java如何在jtable的所有行中循环   java如何使用maven将unicode插入mysql   java使用安卓加速远程数据检索   java试图模拟麦克风(javax.sound.sampled)   swing SwingWorker从不归还任何东西?(爪哇)   首次在Android Studio上未加载java LibGDX文件   java如何在多个Mysql服务器上设置限制和偏移?   如何防止从java连接到mongodb时登录控制台?