Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to generate a perceptual 2-dimensional color map...

10 views
Skip to first unread message

mik

unread,
Oct 20, 2009, 12:21:12 PM10/20/09
to
Hello,

I want to define a colormap f based on 2 parameters X and Y, such that
when drawing a patch with a color f(x,y), I shall perceptually infer
from that color f(x,y) the values X=x and Y=y for the two parameters.

What could be a colormap perceptually relevant for this task?

I tried using interpolated color map from RGB space such that : f(0,0)
= yellow, f(1,0)=pure red, f(0,1)=pure green and f(1,1)=black. but I
probably get a not optimal color map to recover the parameters from
the color.
Could you help me? Reference about similar attempts?

Thank you

Mik

Danny

unread,
Oct 25, 2009, 5:11:51 PM10/25/09
to

To project a 3-D space (color) onto a 2-D space (X,Y) can be tricky.
What you need is known as a chromaticity diagram. Such that the
colors are mapped to (u,v) plus an orthogonal luminance axis which is
ignored.

The most visually uniform chromaticity diagram comes from the CIE 1976
(u,v) diagram. For the convenience of displaying the colors, uvL can
be mapped into RGB via linear algebra.

Bruce Lindbloom has a site that shows how to convert RGB to standard
CIE XYZ

http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html

and

Earl F Glynn has a site that will show how to convert XYZ to uv

http://www.efg2.com/Lab/Graphics/Colors/Chromaticity.htm

mik

unread,
Oct 26, 2009, 4:51:16 AM10/26/09
to
On 25 oct, 22:11, Danny <DannyR...@softhome.net> wrote:

> On Oct 20, 12:21 pm,mik<michael.aupe...@gmail.com> wrote:
>
>
>
> > Hello,
>
> > I want to define a colormap f based on 2 parameters X and Y, such that
> > when drawing a patch with acolorf(x,y), I shall perceptually infer
> > from thatcolorf(x,y) the values X=x and Y=y for the two parameters.

>
> > What could be a colormap perceptually relevant for this task?
>
> > I tried using interpolatedcolormapfrom RGB space such that : f(0,0)

> > = yellow, f(1,0)=pure red, f(0,1)=pure green and f(1,1)=black. but I
> > probably get a not optimalcolormap to recover the parameters from

> > thecolor.
> > Could you help me? Reference about similar attempts?
>
> > Thank you
>
> >Mik
>
> To project a 3-D space (color) onto a 2-D space (X,Y) can be tricky.
> What you need is known as a chromaticity diagram.  Such that the
> colors are mapped to (u,v) plus an orthogonal luminance axis which is
> ignored.
>
> The most visually uniform chromaticity diagram comes from the CIE 1976
> (u,v) diagram.  For the convenience of displaying the colors, uvL can
> be mapped into RGB via linear algebra.
>
> Bruce Lindbloom has a site that shows how to convert RGB to standard
> CIE XYZ
>
> http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
>
> and
>
> Earl F Glynn has a site that will show how to convert XYZ to uv
>
> http://www.efg2.com/Lab/Graphics/Colors/Chromaticity.htm

Thank you very much for these documents.
Mik

Message has been deleted

Gernot Hoffmann

unread,
Oct 27, 2009, 11:32:51 AM10/27/09
to

mik schrieb:

(I've replaced my original message).

Depending on the task, you can take an arbitrary plane in a
rather uniform color space, the Digital Munsell,
http://www.fho-emden.de/~hoffmann/munsell15052009.pdf

CIELab values for a finite number of patches are given.
A description by functions is not available.

Using CIELab directly is not recommended because of the
imperfect uniformity.
Furtheron, there is for any 3D color space an infinite number
of 2D cross-sections or projections.

Best regards --Gernot Hoffmann

Graeme Gill

unread,
Oct 29, 2009, 11:42:24 PM10/29/09
to
Gernot Hoffmann wrote:
> Using CIELab directly is not recommended because of the
> imperfect uniformity.

This is a bit misleading. CIELab is recommended compared
to many alternatives that make no attempt to be visually uniform
(ie. XYZ, Yxy, many device spaces etc.).

There are colorspace that are more visually uniform than CIELab,
but they have yet to be as universally embraced, and for many
non-critical purposes CIELab is adequate.

Graeme Gill.

mik

unread,
Nov 3, 2009, 12:12:01 PM11/3/09
to
On 27 oct, 16:32, Gernot Hoffmann <hoffm...@fho-emden.de> wrote:
> mikschrieb:
> rather uniformcolorspace, the Digital Munsell,http://www.fho-emden.de/~hoffmann/munsell15052009.pdf

>
> CIELab values for a finite number of patches are given.
> A description by functions is not available.
>
> Using CIELab directly is not recommended because of the
> imperfect uniformity.
> Furtheron, there is for any 3Dcolorspace an infinite number

> of 2D cross-sections or projections.
>
> Best regards --Gernot Hoffmann

Thank you

Mik

0 new messages