Skip to main content

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

date:

February 2012

description:

Imprement some of color correction algorithms

require:

python2.6 or later
numpy
Pillow

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.

Metadata

Release files for colorcorrect 0.9.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for colorcorrect 0.9.1
File Size Uploaded
colorcorrect-0.9.1.tar.gz 8.0 kB Details

Release files / colorcorrect-0.9.1.tar.gz

Download URL colorcorrect-0.9.1.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a12bdd9dd71d2c0c29db5fc1a4b6452ffa53a82b22735985924218cb71674bb6
BLAKE2b-256 checksum
How to use checksums
f0fe1b267828a975f747814f4973ac34077979c149b8a0505be313c6062c8e58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.6.6

Release history Release notifications | RSS feed

This release

0.9.1 This release

1 release file

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6.1

1 release file

0.6

0.05

1 release file

0.04

1 release file

0.03

1 release file

0.02

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page