comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Color Tables for Use with Chromatek Glasses
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Color Tables for Use with Chromatek Glasses [message #14257] Thu, 04 February 1999 00:00
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
Elaine Chapin wrote:
>
> Does anyone have any experience with color tables for
> use with Chromatek glasses? The glasses make an
> image appear 3-D by making the blue appear further
> away and the red closer. The trouble is that the
> standard IDL color tables don't appear to scale
> linearly with appearant depth. When I use Rainbow
> for example, the depth appears very quantized and
> not a nice continum. I tried building a color table
> of my own for this with limited success.
>
> Any advice or comments would be appreciated. If you
> haven't played around with this I recommend that
> you check out Chromatek's WWW site at
> http://www.chromatek.com
>
> Elaine.Chapin@jpl.nasa.gov

Physiologists will probably hang me for this, but let me try to give you
some hints:
IDLs colortables are apparently built mostly around the
Hue-Saturation-Brightness
(or Hue-Saturation-Value) color models (see the online help for a little
more information or consult your encyclopedia of choice). From the
description that I scanned at the site you gave above, I figured that's
what those glasses use, too. Going from red to blue via the intermediate
rainbow colors is like changing the hue angle while keeping the other
parameters constant.

Here is what you could try:
n = !d.n_colors ; for 256 systems. True color may kill you here ...
hue = findgen(n)/float(n) * 270. ; don't do complete circle or you'll
end up with red
sat = fltarr(n) + 1.
val = sat

tvlct,hue,sat,val,/HSV

If this doesn't satisfy you, you should try to apply a different
function to your hue values (instead of linear increments as it is now).

Good luck,
Martin.


--
------------------------------------------------------------ -------
Dr. Martin Schultz
Department for Engineering&Applied Sciences, Harvard University
109 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA

phone: (617)-496-8318
fax : (617)-495-4551

e-mail: mgs@io.harvard.edu
Internet-homepage: http://www-as.harvard.edu/people/staff/mgs/
------------------------------------------------------------ -------
[Message index]
 
Read Message
Previous Topic: Re: Scalp editting??
Next Topic: TIFF compression

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:52:51 PDT 2025

Total time taken to generate the page: 0.00441 seconds