Colour spaces

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
User avatar
AndrewAPrice
Member
Member
Posts: 2299
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Colour spaces

Post by AndrewAPrice »

I always wondered of the purpose of monitor drivers until I started reading about colour space.

sRGB (http://en.wikipedia.org/wiki/SRGB) only shows a small portion of the possible visible colours. Depending on your monitors brightness/contrast/temperature etc the sRGB triangle can be mapped do a different area of the spectrum. So it made sense that for professional photography you would need monitor/printer drivers that can reproduce the exact some colour from one device onto another.

http://en.wikipedia.org/wiki/ProPhoto_RGB_color_space comes close to representing the fuller range but not quite. I've looked into other systems aswell (L.a.b being my favourite).

So I'm thinking about making a colour model that can represent the entire range of visible colours (even if it touches upon ultraviolet). I thought about a physics based model based on photon wave length and intensity, though some colours (e.g. pink) are made up of multiple waves. I'm looking for a system that wouldn't just be for storing images, but also practical to do lighting operations on (e.g. with RGB it's easy to multiply (reflected colour = surface colour * light colour) and add light (output = light 1 + light 2 + light 3) together in real time).
My OS is Perception.
User avatar
JackScott
Member
Member
Posts: 1031
Joined: Thu Dec 21, 2006 3:03 am
Location: Hobart, Australia
Contact:

Re: Colour spaces

Post by JackScott »

Kind of off-topic, but this is why I like BenQ monitors; they provide their monitor drivers on Windows Update. So (assuming you use Windows) you get the drivers automatically without noticing. Definitely bonus points there.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: Colour spaces

Post by AJ »

Hi,

Looking at the CIE chromaticity diagram, in order to incorporate the entire visible spectrum without too much outside CIE colour space, you'dhave to introduce several more coordinates. IIRC, there was an attempt to create such a system with a s dimensional variant of the chromaticity diagram.

At uni, I had several lighting and colour modules (relating to the human eye, not computers) - I'll see if I can dig out any of my old notes over the next few days.

Cheers,
Adam
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

Re: Colour spaces

Post by JohnnyTheDon »

JackScott wrote:Kind of off-topic, but this is why I like BenQ monitors; they provide their monitor drivers on Windows Update. So (assuming you use Windows) you get the drivers automatically without noticing. Definitely bonus points there.
A lot of monitor and device vendors do this now. Last time I reinstalled Windows, I didn't have to download a single driver.
Craze Frog
Member
Member
Posts: 368
Joined: Sun Sep 23, 2007 4:52 am

Re: Colour spaces

Post by Craze Frog »

So I'm thinking about making a colour model that can represent the entire range of visible colours
How will you represent gold?
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: Colour spaces

Post by AJ »

Craze Frog wrote:How will you represent gold?
Thats easy from a colour point of view. What's slightly more tricky is the reflectivity and smooth texture of polished gold, which can be simulated easily enough with current hardware.

Cheers,
Adam
Craze Frog
Member
Member
Posts: 368
Joined: Sun Sep 23, 2007 4:52 am

Re: Colour spaces

Post by Craze Frog »

AJ wrote:
Craze Frog wrote:How will you represent gold?
Thats easy from a colour point of view.

Cheers,
Adam
Yellow and gold look different. Would you encode them as if they were the same?
User avatar
bewing
Member
Member
Posts: 1401
Joined: Wed Feb 07, 2007 1:45 pm
Location: Eugene, OR, US

Re: Colour spaces

Post by bewing »

The point of color spaces is that the human eye cannot SEE all possible colors distinctly. So it makes no sense at all to try to reproduce them, physically. (And, of course, each human's eyes are slightly different, and respond differently to the same mixture of wavelengths and intensities.)

A simple example: create a laser that produces a precise 5555nm wavelength. Ask people what they see. They will say "green". Create a careful mixture of RGB intensities, and ask people if it is the same color. They will say "yes". Will the mixture be 0 red, and 0 blue? No, it will not. (Especially since the "green" in the RGB is not at 5555nm.) So, question: what, physically, does that mixture of RGB have to do with 5555nm light? Answer: nothing whatsoever. The only point is that human eyes happen to see 5555nm light, and that mixture of RGB, and billions of other mixtures of billions of other wavelengths and intensities as being basically the same color.

Now, yes, it is true that most humans can experience colors that RGB or any other colorspace cannot quite reproduce. It is also true that blue-eyed humans can see soft ultraviolet, where brown-eyed humans cannot.

But the point is going to be that you are dealing with a marginal effect, here. And that on that margin, individual human differences become much more of a factor. All the current color schemes fairly accurately represent the majority of colors that everyone can agree on.

And yes, humans recognize things like "gold" by the observed color and intensity of the specular reflections, not by the precise wavelengths.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: Colour spaces

Post by AJ »

Hi,

Hopefully in the post above, you mean 555nm ;)

As an addendum to the above, the CIE diagram takes in to account different percieved colours being produced by different mixes - pick two points, draw a line joining them. The point half way along that line shows the colour created by the two original primaries.

Another interesting point is the straight "line of purples" along the bottom of the diagram. It represents colours which cannot be obtained by a single wavelength of light - they have to be mixed.

Cheers,
Adam
User avatar
bewing
Member
Member
Posts: 1401
Joined: Wed Feb 07, 2007 1:45 pm
Location: Eugene, OR, US

Re: Colour spaces

Post by bewing »

Meant Angstroms, actually -- guess I was tired. :wink:
clange
Member
Member
Posts: 163
Joined: Sun Oct 05, 2008 5:00 am
Location: Copenhagen, Denmark
Contact:

Re: Colour spaces

Post by clange »

Craze Frog wrote:
AJ wrote:
Craze Frog wrote:How will you represent gold?
Thats easy from a colour point of view.

Cheers,
Adam
Yellow and gold look different. Would you encode them as if they were the same?
Yes and no - if the light hitting waves hitting the eyes photo receptors in these two cases "mapped" to the same "color value" then yes - otherwise no.

How the human visual system perceives colors is very complex (and not fully understood) but can basically be modeled with 3 "primary" colors since we have (roughly) 3 kinds of light receptors in the eye. This means that any combination of base colors can be used and only three parameters is enough to model the colors that we can see. Different color systems can be viewed as different mappings of the same.

The above is a very simplified explanation and is I probably made some mistakes - please correct me.

clange
Craze Frog
Member
Member
Posts: 368
Joined: Sun Sep 23, 2007 4:52 am

Re: Colour spaces

Post by Craze Frog »

bewing wrote:All the current color schemes fairly accurately represent the majority of colors that everyone can agree on.
That's simply not true. I learned that from experience after getting education in arts. There is a very significant part of RGB that can't be represented properly with CMYK, for example. I'm not talking about minor visual differences here, I'm talking about huge ones.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Colour spaces

Post by Solar »

clange wrote:This means that any combination of base colors can be used and only three parameters is enough to model the colors that we can see. Different color systems can be viewed as different mappings of the same.

The above is a very simplified explanation and is I probably made some mistakes - please correct me.
Wikipedia: Representation of gamuts is a very good paragraph to de-illusion you.
Every good solution is obvious once you've found it.
clange
Member
Member
Posts: 163
Joined: Sun Oct 05, 2008 5:00 am
Location: Copenhagen, Denmark
Contact:

Re: Colour spaces

Post by clange »

Solar wrote:
clange wrote:This means that any combination of base colors can be used and only three parameters is enough to model the colors that we can see. Different color systems can be viewed as different mappings of the same.

The above is a very simplified explanation and is I probably made some mistakes - please correct me.
Wikipedia: Representation of gamuts is a very good paragraph to de-illusion you.
As I said: very simplified. It is of course only true with respect to the human visual system (*) and under the assumption that the color spaces are not constraint by reality. The color space as such does not restrict the which colors can be described only the gamut of the device used to render the final color. Which also gives a good intuitive explanation for negative color coefficients.

(*) And three samples is of course not enough to describe colors when doing calculations. Imagine a fluorescent light source illuminating a lemon. 3 samples will never be enough to represent both the relative smooth "reflection" of the lemon compared to the very narrow spike of the light source.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Colour spaces

Post by Solar »

clange wrote:(*) And three samples is of course not enough to describe colors when doing calculations. Imagine a fluorescent light source illuminating a lemon. 3 samples will never be enough to represent both the relative smooth "reflection" of the lemon compared to the very narrow spike of the light source.
Erm...

I think you are confusing color (which could be a single pixel on the screen) and stuff like texture, reflection etc...
Every good solution is obvious once you've found it.
Post Reply