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

Home » Public Forums » archive » Re: gamma correction
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: gamma correction [message #31229 is a reply to message #31223] Thu, 27 June 2002 21:42 Go to previous messageGo to previous message
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
"David Fanning" <david@dfanning.com> wrote in message
news:MPG.1785543b517ba7a498991a@news.frii.com...
> Dick Jackson (dick@d-jackson.com) writes:
>
>> By changing the colortables with Gamma_CT or just
>> using TVLCT [with 24-bit images]
>
> I just point out again that while this would probably
> work on a Mac and PC, it probably won't work on a
> UNIX machine. The last time I checked (several years
> ago and God knows RSI has changed the way color works
> enough times that two years is ancient history), a
> UNIX machine in TRUECOLOR mode, with color decomposition
> turned OFF, did not take the image values through the
> color table before display, as it does with PCs.

Sorry, you had mentioned that. Would someone confirm whether this is still the
case!

> In other words, on UNIX machines a true-color image
> is a true-color image [...]
>
> Now I see that the fore-sighted engineers at RSI
> were really concerned about gamma correction and
> had put the machinery in place to handle this
> without me even realizing it. Have I mentioned that
> I *love* IDL!

:-) Gotta wonder, was it intentional? Could they be reconciled?

> I'm just feeling sorry for the UNIX
> guys now. They are going to have to modify the
> numbers in their image to get the same effect.

We can always just make three lookup arrays and use them 'manually' to give the
same effect, as in:

newImageRedChannel = redLookup[origImageRedChannel]

Or simpler, if all three channels are using the same transfer function (simple
gamma curve, for example), we could just make one 256-byte lookup table and
then:

TV, /True, gammaLookup[origImage]

Cheers,
--
-Dick

Dick Jackson / dick@d-jackson.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Delvar?
Next Topic: Delvar?

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

Current Time: Tue Oct 21 07:02:19 PDT 2025

Total time taken to generate the page: 1.54574 seconds