Color Presentation

Alexander Liss

07/18/01

Human eye has four different sensors, and one would expect a theory describing human perception of light (color) with four independent parameters. However, we use theories with three (RGB) or even two parameters.

Following is a consistent four-parameter theory of color, including color transformation by a substance, when light passes it through, as in a case of glass, or it is reflected by it, as in a case of a surface.

Physics of Light

We break a range of wavelengths of visible light [Z0,Z1] with intermediate points

z0=Z0, z1, ..., zn=Z1

and analyze separately components of the light, which wavelengths belong to the segment [zi-1,zi]. For each such component, we determine the intensity of light si. (We arrive to a familiar characteristic of spectrum of light, when we make segments [zi-1,zi] small and their number large. We will not make this step, because for practical measurements we will operate with this finite division of the segment [Z0,Z1] any way.) This discrete spectrum defines light with some precision.

We define now characteristics of a substance in relation to light. The substance can reflect light, or light can pass through it, in any case, light is transformed by the substance.

For each component j of original light, we look at its transformation by the substance. It has a full spectrum, and we take its component i.

When we take "standard" original light - its component j is equal to a unit of measurement of light intensity, we get a standard matrix. This matrix is a characteristic of substance.

Physiology of Sight

Following are a few facts from physiology.

1. Human eye has four types of receptors of light. If we draw a graph of sensitivity to the light of particular wavelength for each type of sensors, we get for curves.

One curve is uniform - this receptor (rods, achromatic) reacts on the presence of light.

Others (related to cones, chromatic sensors) are non-uniform. They have one apex - each type in its area of wavelengths.

2. For each component of the light (as we had defined above), the reaction of a sensor to the intensity of light is roughly proportional to a logarithm of intensity of this component.

3. A reaction on a sum of components is a sum of reactions. This corresponds well with the pattern of reaction of our other sensors.

4. Reactions of the sensors are based on a light induced reaction (photoreaction) of a special sensor's substance (rhodopsin). Characteristics of the reaction in the current moment depend on a degree of illumination of the sensor in a previous moment. Hence, sensors have some "memory".

One can observe such "memory" by viewing a long time some object of a definite color and switching viewing to a white surface. One observes a faint colored image of the object (the color is different than one observed originally).

5. Our eyes create two-dimensional snapshot, albeit uneven - the central part of this image is much richer (more sensors are involved), than peripheral. The perpetual automatic scanning feeds our brain with the series of such partially overlapped snapshots. Consecutive snapshots interfere, because of the sensors' "memory".

6. There is a threshold of sensitivity, which is different for different sensors. Chromatic sensors do not deliver useful signals to brain, when light is dim.

Perception

Following are facts related to interpretation of images of light in our minds.

1. Our mind operates with four types of signals from eyes. This is the base of our color-images.

2. We perceive colored surfaces and space, but we can define an abstraction of the color in one point. This abstraction we associate with a uniform color of some (small) area.

3. Our perception of the same colored surface changes as the level of illumination changes; this effect is felt especially, when a level of illumination reaches some of thresholds of sensitivity, as in dusk.

4. Our perception of a color-image depends on the surroundings; for example, the same color image can look darker on a bright background.

5. We have a strong perception of relations between different colors: some colors form families of related colors (red, rose, etc.) and some color combinations we perceive as harmonious.

Dual System of Concepts

There is a system of concepts, with which physics operates, when it describes light, and there is a different system of concepts, which we have to use when we describe color-images. Thus, we have presentation of light with the spectrum on one side, and RGB presentation of the color on the other.

One system is traditionally used in physics and another is used when color-images are described, for example in business or art presentations.

Physical Presentation of Light and Mental Color-Image

A sensitivity of the eye sensor's substance to light is measured by a degree of substance reaction to light of given intensity.

If this sensitivity is ri for a light component i, and si is an intensity of component i, then a cumulative reaction of the substance is a sum of si*ri by all light components:

s1*r1+ ...+sn*rn.

There is a general pattern, how a body (including brain) reacts on stimuli. Reaction on light follows this pattern.

A relation between a physical stimulus and corresponding perception follows a rule: a small change in the level of stimulus leads to a proportional small change in a level of perception; it is inversely proportional to a current level of stimulus. When a change of the level of perception y is dy, and a change in the level of stimulus x is dx and coefficient of proportionality is a, we can write this rule in a following formula

dy=a*dx/x.

Hence

y=a*ln(x)+c,

where

ln() - natural logarithm, and

c - constant.

The constant c in this formula, we can find from a following fact. When the level of stimulus is below x0 there is no reaction (there is a threshold of sensitivity). Hence:

0=a*ln(x0)+c, or

c=-a*ln(x0).

It means:

y = a*ln(x/x0), when x ³ x0,

y = 0, when x < x0

When we know a level y, a corresponding level x is:

x = x0*exp(y/a), y ³ 0.

We apply this reasoning to an eye sensor. In this case, the stimulus is the reaction of the eye sensor's substance:

x = s1*r1+ ...+sn*rn.

Values a, x0 and ri depend on the sensor. Hence, we need to know values aj, x0j, and

r1j, ..., rnj

for each sensor j=1,2,3,4.

As soon we have this information, we can compute reactions of eye sensors to the light of any spectrum.

Color Presentations

We can present color of the light with spectrum

s1, ..., sn

as a vector (x1, ..., x4), where

xj = s1*r1j+ ...+sn*rnj

or as a vector (X1, ..., X4), where

Xj=xj/x0j

and, if we introduce normalized coefficients

Rij = rij/x0j,

then

Xj = s1*R1j+ ...+sn*Rnj,

or we can present color as a vector (y1,...,y4), where

yj = aj*ln(xj/x0j), when xj ³ x0j,

yj = 0, when xj < x0j.

or

yj = aj*ln(Xj), when Xj ³ 1,

yj = 0, when Xj < 1.

All these presentations are equivalent. We call them x-form, X-form and y-form correspondingly.

Classes of Related Colors

There are classes of colors, which we perceive as closely related. It is possible, that these classes emerge from an observation of the same object with different illumination.

One of the sensors - we give it number four, is achromatic, it is present differently in our classification, than three other sensors.

All colors with the same combination of (x1,x2,x3) regardless of the value x4 are perceived as closely related. Hence a combination (x1,x2,x3) we call tint of the color, and x4 we call intensity of the color.

Tints are characterized with three parameters. In this respect they are close to RGB presentation. However, linear transformations in the space of tints have good visual associations, and this is not true in RGB.

Colors with the same ratio x1:x2:x3 (and any possible value of x4) form a class of related colors. We call this ratio hue of the color.

Hues can be interpreted as classes of Tints. They can be described with two parameters.

Base Intensity Level

There are shiny colors - which intensity is high and dull colors - with low intensity. The boundary between them - Base Intensity Level depends on a degree of illumination of the color-image and surrounding area. Our visual system makes an automatic adjustment for the degree of illumination.

Hence, if one cares to deliver a particular impression with a color-image, one has to either control a Base Intensity Level or has to manipulate an image to adjust to an existing Level.

Brightness of Tint and Base Brightness Level

Tints (x1,x2,x3) of the same hue x1:x2:x3 have different brightness - some are dark tints others are bright tints, for example brown and yellow. We can describe brightness with the value

1/3*(x1+x2+x3),

which we call a level of tint. This is a technical characteristic, which corresponds to a perception of brightness of color.

A boundary between dark and bright tints is Base Brightness Level. It depends on a degree of illumination of the color-image and on a surrounding area.

If we want a more precise characteristic of the brightness of color, we have to define it with y-forms. x-forms allow us only convenient description of the boundary between bright and dark colors.

Visible Colors

There are values of the vector representing color (x1,x2,x3,x4), or values of the vector representing tint (x1,x2,x3), or even values representing hue (x1:x2:x3), which do not correspond to any light. For example, red sensor reacts always, when any other chromatic sensor reacts; hence, it is impossible to have a zero component, corresponding to the red sensor, with non-zero component, corresponding to another chromatic sensor.

Values, which correspond to some light, form areas in four-dimensional color space, in three-dimensional tint space and in two-dimensional hue space.

Hence, our presentation of color with tint is different from the similar three-dimensional RGB presentation, where any combination of coordinates corresponds to some light.

We need one property of the areas of visible colors. If there is a color with the given hue, then all possible tints with this hue exist.

This is because, if the spectrum of the light with the given hue is s1, ..., sn, then lights with spectrums c*s1, ..., c*sn, with all possible values of c form the class of tints of given hue.

It is important that when eyes get tired, for example from prolonged observation of the same color, the characteristics of sensors change and the areas described above move somewhat. This effect allows creation of "unseen" colors - we observe the color, which we did not see before. Creators of color-images sometimes use this effect.

Mixing Lights and Paints

When we mix paints or lights the effect can be unexpected. However, mixing colors is a basic operation of color manipulation.

When we mix lights, we add-up their spectrums - if one light has a spectrum a1, ..., an, and the other has a spectrum b1, ..., bn, then their mixture has a spectrum

a1+b1, ..., an+bn

and we can compute its color. If the color of first light is presented with the vector (x1,x2,x3,x4)1, and the second light with the vector (x1,x2,x3,x4)2, then the color of their mixture is presented with the vector

(x1,x2,x3,x4)1 + (x1,x2,x3,x4)2

where sign plus means ordinary addition of vectors.

When we mix paints, and we have fixed conditions of illumination, we can compute results of light transformation by paint. If the spectrum of light transformed by first paint is a1, ..., an, and the spectrum of light transformed by second paint is b1, ..., bn, and we mix these paints in ratio p1:p2 (p1+p2=1), then light, transformed by mixed paint has the spectrum

p1*a1 + p2*b1, ..., p1*an + p2*bn

and we can compute its color. If the color of light transformed by first paint is presented with the vector (x1,x2,x3,x4)1, and the color of light transformed by second paint - with the vector (x1,x2,x3,x4)2, then the color of light transformed by their mixture is presented with the vector

p1*(x1,x2,x3,x4)1 + p2*(x1,x2,x3,x4)2

where sign plus means ordinary addition of vectors and multiplication sign is a multiplication of the vector by scalar.

We have similar formulae in X-forms.

White-black Color

One group of colors is very important for the description of perception of color. This group includes all white and black colors, depending on the color intensity and brightness. We call this group white-black color. This group is better defined in y-form.

All colors with

y1 = y2 = y3

(and any possible value of y4) form this special class. In X-form it is

a1*ln(X1) = a2*ln(X2) = a3*ln(X3)

When a1, a2 and a3 are close to each other, we have an approximation of this equation

X1 = X2 = X3

Stain

When we mix paints, we often get surprising results. However, there is one color, mixing of which produces predictable results - white-black color.

This creates one additional classification. All hues, which can be presented as a mixture of paint with given hue and other paint of white-black color, belong to the same stain. The set of all possible stains is one-dimensional.

Basis for Color Harmony

We described above how eyes scan the view and how snapshots interfere. As a result of such interference, we can see colors-mixtures, which are not present in the view. Because we want to see the real picture, we reduce speed of scanning to reduce such interference.

Interference during an observation of some color combinations produces only white-black colors, which can be easily filtered out. Such convenience causes a natural attachment to these color combinations. We call them harmonious.

Fast jumping of the eye focus from one color to the other produces effect similar to mixing of the colors (in approximately same ratio). Hence, we have a quantitative definition of the color harmony. The set of colors is harmonious, if the mixture of them in equal ratios is a white-black color.

The mixture of lights reaching the eyes (X11,X21,X31) and (X12,X22,X32) in equal proportion is a color with parameters

0.5*(X11,X21,X31) + 0.5*(X12,X22,X32)

where addition and multiplication are ordinary vector operations. For colors to be perceived as harmonious it has to have equal components in y-form (this gives approximately white-black color):

a1*ln(X11 + X12) = a2*ln(X21 + X22) = a3*ln(X31 + X32).

This formula can be generalized for many colors.

When a1, a2 and a3 are close to each other, we have an approximation of this equation

X11 + X12 = X21 + X22 = X31 + X32

Distance between Colors

The concept of distance between different colors is vague. However, we need to define it in the most reasonable way, because we want to manipulate color-images.

For technical color approximation, we define it as a distance between two vectors of y-form presentation of color. Hence, if we have two colors with presentations (y1,y2,y3,y4)1 and (y1,y2,y3,y4)2, then we define the distance between them as a distance between these two vectors.

Effect of Small Variation of Color on Surface and in Space

The particular properties of color-image can be determined by the small random variations of color on the surface or in the space (as in glass). Examples are faded colors (with mixed-in white dots) and dirty colors (with mixed-in black dots).

There are many ways to describe this variation, we present here one of them.

We present the color of surface (or space) as a set of randomly placed small dots of uniform color. Hence, if we have dots of colors d1, ..., dm, we need only define the corresponding probabilities p1, ..., pm, to define this type of the color-image.

Color Transformation by Substance

We can compute transformation of color by substance (paint, color filter, etc.) with the help of special effect coefficients, which we define here.

When we want to define the change of color perception induced by substance, we do not need to know the entire transformation of spectrum induced by this substance, we need to know less.

We take light component i of the intensity equal to the unit of measurement. We define the effect coefficient qij as the degree of reaction of the eye sensor j (its sensitive substance) to this light component i after the transformation by this transforming light substance (paint).

If the light has spectrum

s1, ..., sn

and it is transformed by given substance, then we can compute the color-vector (x1,x2,x3,x4) of a transformed light:

xj=q1j*s1 + ... + qnj*sn

We can normalize coefficients qij

Qij = qij/x0j

and compute color-vector (X1,X2,X3,X4):

Xj=Q1j*s1 + ... + Qnj*sn.

Mixing Paints and Covering Surface or Space

Paint includes small colored particles, which determine its color. Geometric qualities and degree of transparency of these particles determine how they compete with the colored particles of the other paint at mixing and how well they cover the color of the surface or transform the passing light.

This property we describe with the covering coefficient. Covering coefficient is a minimum amount of paint, which we need to apply to the unit of surface area to cover the surface completely (or to apply in the unit of volume, to have no holes for passing light).

Covering coefficient depends on the method of application (as placing dots by the printer), and type of the surface (paper, textile, wall, etc.). Usually, these factors are fixed, or we have only a few classes of possible combinations of these factors.

It is a number, which allows calculation of the qualities of light reflected by paint, as a function of the applied amount of paint.

Color-producing Instruments

With our presentation of color, we can have the universal presentation of color-producing instrument, including its gamut. We distinguish two cases. One is Lamp instrument, which produces light (as TV set, for example) and the other is Paint instrument, which produces something transforming light (as printer, for example). Color-producing Instruments have Elements, which actions we combine to produce color, as inks in inkjet printer.

Lamp Instrument

We assume that the Lamp Element does not change the shape of its spectrum; it only changes its intensity (in some boundaries). Hence universal characteristics of the state of Element k are:

intensity of the light ck (variable),

its boundaries [C0k,C1k],

and four parameters

(g1k,g2k,g3k,g4k)

which are equal to the color-vector (x1,x2,x3,x4) of the light produced by this element, when intensity ck=1.

This Element can produce light with the color-vector

ck*(g1k,g2k,g3k,g4k), for any ck from [C1k,C2k].

If we have K Elements, we can produce light with the color-vector

c1*(g11,g21,g31,g41) + ... + cK*(g1K,g2K,g3K,g4K)

for any combination of c1, ..., cK as long each ck belongs to its segment [C0k,C1k].

This is the gamut of Lamp Instrument in our x-presentation of color. Obviously, if one wants to monitor only tint of the color, one works only with three parameters of color instead of four.

This defines a figure with linear boundaries in the four-dimensional space - a polyhedron. The presence of lower boundaries can make this figure complex with the kind of depression or even a hole in the middle.

Manufacturers of color-producing instruments can compensate this handicap of unavailable low intensity of the light of the Elements by adding Elements with lights, which colors are near black-white color.

Paint Instrument

Paint as color-transforming substance has effect coefficients and covering coefficient. Hence, Paint, as an Element k of the Paint Instrument, has effect coefficients

qijk i=1,...,n, j=1,...,4

and the covering coefficient

uk.

The variable corresponding to the Paint Element is amount of paint. In our universal presentation we use normalized amount of paint ck - the ratio of the amount of paint applied to the unit of surface area (or volume in the case of space) to the covering coefficient uk. Light reflected by the paint is proportional to the normalized amount of paint. The normalized amount of paint we can vary from zero to one.

We apply a few Paints to the surface (or in the space), which has its own ability to transform the light and its own color.

First, we do not apply more than needed to cover the color of surface (or the space), hence the sum of normalized amounts of Paints should not be greater than one.

Second, if we do not cover completely the color of surface (or the space), we have to compute the effect of combination of Paints and the surface.

The color of surface (or the space) we should treat as Paint - an additional artificial Element. The normalized amount of this Paint is what supplements the sum of normalized amounts of real Paints to one.

If we know for sure that we cover the surface (or the space) completely, we do not need to add this artificial Element.

Now, for the given illuminating light with the spectrum s1, ..., sn, we can compute the vector (g1k,g2k,g3k,g4k), where

gjk = xjk = q1jk*s1 + ... + qnjk*sn

which is the presentation of color of the given Paint.

Normalized amounts of paint, including the artificial Element formed by the color of surface (or the space), are non-negative and not greater than one: 0 £ ck £ 1. In addition, we have the constraint

c1 + … + cK+1 = 1,

which simply states that we took in consideration all light transforming substances and did not use excess of them.

The color of surface (the space) is

c1*(g11,g21,g31,g41) + .... + cK+1*(g1K+1,g2K+1,g3K+1,g4K+1).

This defines a polyhedron in four-dimensional space.

In the case of printer, usually there are four paints - three chromatic and black. If we add a bright white Paint, then the polyhedron can be increased dramatically - this means better color approximation (color matching). This has an additional advantage - we do not need to use the white color of paper, which vary from one type of paper to the other, we can cover the surface completely.

Color Presentation

There is a family of coordinated color presentations. The most complete one presents (uniform) color with four-dimensional vector - color-vector. It has three forms

x-form (x1,x2,x3,x4),

X-form (X1,X2,X3,X4) and

y-form (y1,y2,y3,y4),

which complement each other.

y-form reflects the perception of color. Three components of these vectors are chromatic, and fourth component is achromatic.

The colors of the same tint form one-dimensional subspace in four-dimensional color space of x-forms where achromatic component can vary. Hence, if the limited characteristic of color - tint, is sufficient, then we can operate in three-dimensional space of vectors-tints (first tree components of the color-vector).

The vectors-tints, which are proportional, form a one-dimensional subspace in the tint space. These are tints, which have the same hue and differ in brightness. If it is sufficient to work with hues, we can operate in two-dimensional space of hues. The convenient presentation of the hue space is a triangle which is formed by non-negative values of tint-vectors (x1,x2,x3), when x1 + x2 + x3 = 1.

Finally, all hues of colors, which can be presented as a mixture of the white-black color and a given color, form a one-dimensional subspace in the hue space - stain. Hence if the minimal characteristic of the color - stain, is sufficient, we can operate in one-dimensional space of stains. The convenient presentation of the stain space is the perimeter of the hue triangle or a circumference.

Spectrum of Light and Color

In many cases, there is a practical need in the computing the presentation of color from the spectrum of light. We divide the segment of wavelengths of visible light [Z0,Z1] with intermediate points

z0=Z0, z1, ..., zn=Z1

and define spectrum

s1, ..., sn

where si is intensity of the part of light, which wavelengths are from the segment [zi-1,zi].

We define coefficients rij, which depend only on the characteristics of human visual system, and

xj = s1*r1j+ ...+sn*rnj

Also we define coefficients aj and z0j, which depend only on the characteristics of human visual system, and

yj = aj*ln(xj/x0j), when xj ³ x0j,

yj = 0, when xj < x0j.

Thus, we have the relationships between two forms of presentation of color - x-form and y-form, and the formula of computation of color-vectors from the spectrum of light.

Color with Small Variation

For creators of color-images, there is a way of presentation and generation of a color on a surface or in a space with small variations.

We present the color of a surface (or a space) as a set of randomly placed small dots of uniform color. We have dots of colors d1, ..., dm, (which are presented with color-vectors) and the corresponding probabilities p1, ..., pm. This defines this type of color-image.

To generate this type of color-image we use random number generator to compute placement of dots on the surface or in the space and after we place colored dots accordingly.

Base Intensity Level and Base Brightness Level

A color-image has two important characteristics, which are not encoded in the colors of its points, but in the surroundings of it - Base Intensity Level and Base Brightness Level. These values define the division of colors on shiny or dull and bright or dark. These values have to be the part of description of a color-image. In the process of reproduction of a color-image, they have to be matched to the conditions of the observation of the reproduced color-image.

Effect and Covering Coefficients

We define effect coefficients for the light transforming substances (as paint). We take light, which wavelengths belong to the segment [zi-1,zi] of the intensity equal to the unit of measurement. We define the effect coefficients (qi1, qi2, qi3, qi4), as the color-vector (x1,x2,x3,x4) of this light after the transformation by this light-transforming substance.

The color-vector of light with the spectrum

s1, ..., sn

after the transformation by this substance is

xj=q1j*s1 + ... + qnj*sn.

We define the covering coefficient - the minimum amount of paint we need to apply to the unit of surface area to cover the surface completely (or to apply in the unit of volume, to have no holes for passing light). It depends on the method of application, and type of the surface (or material in space). When we have only a few classes of possible combinations of these factors we define covering coefficient for each class.

These effect coefficients and covering coefficients can be supplied with the substance (with products as paints, printer inks, filters, etc.) in a convenient form (labels, bar codes, digital data, etc.). The presentation of this information can be more compact, if there is a set of standard divisions of the segment of the wavelengths of visible light, at which we can refer.

Based on this information, a customer can compute the proper mix of the substances, which delivers the needed color effect, without experimentation.

Harmonious Colors

Creators of the color-images can form harmonious combinations of colors using following rule: The sum of corresponding tint-vectors in X-form should have equal components in y-form. As an approximation: The sum of corresponding tint-vectors in X-form should have equal components.