Skip to content

ptouch/color

 
 

Repository files navigation

COLOR

These scripts simulate aspects of human color vision based on the Neitz theory of color opponency.

Motivation

A parsimonious account of the distribution of monochromatic lights identified as unique, most notably green, has eluded models of color perception. The standard model in the field consists of three stages predicated upon opponent signals between L- versus M-cones and S-cones versus L- plus M-cone signals. This model fails to predict the variability in unique hue matching experiments. We have developed a three stage zone model that takes into account L/M cone ratio to produce distributions of unique hues with accurate statistical characteristics. The first stage of our model is the known sensitivity functions of the cone photoreceptors. The second stage is composed of a center of either an L- or M-cone opposed to a surround of all three cones with varying contribution. In the third stage these opponent signals are weighted based on the probability of occurrence and summated to construct valence curves for the blue-yellow and red-green mechanisms. Varying the contribution of L- and M-cones to the surround based on an observed distribution of L:M (Carroll et al 2000), we accurately predict the distributions of unique blue, yellow and green. Blue and yellow form narrow distributions around 470nm and 578nm, respectively, while green broadly distributes between 495 and 555nm and closely fits the unique green distribution of (Volbrecht et al 1997). We conclude that our model provides a convincing description of color processing and offers insight into the contribution of L/M ratio in color perception.

Part of this work was presented at the International Color Vision Society meeting in Winchester, UK. A copy of the poster can be obtained here.

Installation

Dependencies

This module is written in the open source programming language python. Additionally, two libraries are necessary to run this module: numpy and matplotlib. Both of these can be easily installed with the pip command if it is installed on your computer. Additionally, numerous scientific computing bundles of python come with these packages. These bundles are free and come with easy to use gui installers. The enthought suite or the pythonxy (windows and linux machines only) are two excellent examples.

Download

To install these scripts git must be installed on your computer. Then from the command line run

git clone https://github.com/bps10/color

This will download the files to a directory called color. You then need to initialize the submodule, base, which contains some general plotting routines and the spectral sensitivity functions.

git submodule init
git submodule update

You can then run

python plot_colorModel.py -h

To display options for plotting the color model. This same command can be used to display options for plot_colorSpace.py, plot_sensitivity.py and plot_stockmanModel.py.

About

a color perception model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published