python import color用法_Python colorcorrect包_程序模块 - PyPI - 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

推荐PyPI第三方库

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值