Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install colorcorrect

How to install colorcorrect

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install colorcorrect
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.04Never BuiltWhy not?
0.03 Failed View build log
0.02 Failed View build log
Windows (64-bit)
0.04Never BuiltWhy not?
0.03 Failed View build log
0.02 Failed View build log
Mac OS X (10.5+)
0.03
0.04Never BuiltWhy not?
0.03 Available View build log
0.02 Available View build log
Linux (32-bit)
0.03
0.04Never BuiltWhy not?
0.03 Available View build log
0.02 Available View build log
Linux (64-bit)
0.04 Available View build log
0.03 Available View build log
0.02 Available View build log
 
License
MIT License
Dependencies
Imports
Lastest release
version 0.04 on Jan 9th, 2014

colorcorrect by Shunsuke Aihara - http://argmax.jp

date:

February 2012

description:

Imprement some of color correction algorithms

require:

python2.6 or later
numpy
PIL

install:

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

impement algorithms:

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)

sample usage:

>>> 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()

References:

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.

Subscribe to package updates

Last updated Jan 9th, 2014

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.