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

Home » Public Forums » archive » gamma correction
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
gamma correction [message #31261] Wed, 26 June 2002 01:14 Go to next message
carine castillon is currently offline  carine castillon
Messages: 2
Registered: May 2002
Junior Member
Hi all,

I have a question about gamma correction.

I'm displaying jpeg image, and I want to apply a gamma correction to this
image.
I don't know how to do. I'm trying gamma_ct procedure but there is no
effect.

Thanks for any help

Carine

PS : excuse me, but I don't speak english, I have some problems to write
this mail... :o(
Re: gamma correction [message #31327 is a reply to message #31261] Wed, 03 July 2002 15:05 Go to previous message
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
"Craig Markwardt" <craigmnet@cow.physics.wisc.edu> wrote in message
news:onu1nncb6p.fsf@cow.physics.wisc.edu...
>
> David Fanning <david@dfanning.com> writes:
>
>> Craig Markwardt (craigmnet@cow.physics.wisc.edu) writes:
>>
>>> Beautiful rose, thank you very much! IDL versions checked from
>>> 5.2 to 5.4.
>>
>> That's what I thought. And that's why Dick's first solution
>> won't work for you. Those babies are not going through
>> the color tables. :-)
>
> Okay, now I guess I understand. Actually you fooled me, I thought the
> beautiful flower was the right answer. :-)
>
> Let me say that I think that the Windows/Mac approach, while it may be
> neato/keen, is just plain wrong. It's documented nowhere! The system
> documentation for DEVICE, DECOMPOSED=1 mentions nothing about such a
> transformation. There should be a documented flag to enable this, and
> then it should work consistently across platforms, darnit!

Having confirmed with Craig that this is the same behaviour on the X
device under True_Color=24 or Direct_Color=24 (which is different from
Windows), all I can say is "humph".

I think it's really a useful feature. If you can fiddle with a grayscale
image by just changing the colortable, why not have the same thing with
an RGB image? That's how it made sense to me when I discovered this
feature/bug, anyway.


Thanks for clearing this up, guys!

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
Re: gamma correction [message #31355 is a reply to message #31261] Fri, 28 June 2002 16:46 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
David Fanning <david@dfanning.com> writes:
> But then there would be no need for TVIMAGE, IMDISP, and... oh,
> what the heck was its name... PLOTIMAGE. It would be a less
> interesting world, to be sure. :-)

The interesting towns are still written up in the guide books.

:-)
Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: gamma correction [message #31356 is a reply to message #31261] Fri, 28 June 2002 15:31 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Craig Markwardt (craigmnet@cow.physics.wisc.edu) writes:

> Okay, now I guess I understand. Actually you fooled me, I thought the
> beautiful flower was the right answer. :-)
>
> Let me say that I think that the Windows/Mac approach, while it may be
> neato/keen, is just plain wrong. It's documented nowhere! The system
> documentation for DEVICE, DECOMPOSED=1 mentions nothing about such a
> transformation. There should be a documented flag to enable this, and
> then it should work consistently across platforms, darnit!

But then there would be no need for TVIMAGE, IMDISP, and... oh,
what the heck was its name... PLOTIMAGE. It would be a less
interesting world, to be sure. :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: gamma correction [message #31357 is a reply to message #31261] Fri, 28 June 2002 15:04 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
David Fanning <david@dfanning.com> writes:

> Craig Markwardt (craigmnet@cow.physics.wisc.edu) writes:
>
>> Beautiful rose, thank you very much! IDL versions checked from
>> 5.2 to 5.4.
>
> That's what I thought. And that's why Dick's first solution
> won't work for you. Those babies are not going through
> the color tables. :-)

Okay, now I guess I understand. Actually you fooled me, I thought the
beautiful flower was the right answer. :-)

Let me say that I think that the Windows/Mac approach, while it may be
neato/keen, is just plain wrong. It's documented nowhere! The system
documentation for DEVICE, DECOMPOSED=1 mentions nothing about such a
transformation. There should be a documented flag to enable this, and
then it should work consistently across platforms, darnit!

Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: gamma correction [message #31361 is a reply to message #31261] Fri, 28 June 2002 14:32 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Craig Markwardt (craigmnet@cow.physics.wisc.edu) writes:

> Beautiful rose, thank you very much! IDL versions checked from
> 5.2 to 5.4.

That's what I thought. And that's why Dick's first solution
won't work for you. Those babies are not going through
the color tables. :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Inside rectangle
Next Topic: Re: sorting array column/rowwise

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

Current Time: Wed Oct 08 13:47:22 PDT 2025

Total time taken to generate the page: 0.00917 seconds