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

Home » Public Forums » archive » changing contrast and brightness on the fly
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: changing contrast and brightness on the fly [message #25436 is a reply to message #25432] Fri, 15 June 2001 19:24 Go to previous messageGo to previous message
Ken Mankoff is currently offline  Ken Mankoff
Messages: 158
Registered: February 2000
Senior Member
>
> I'm looking for tips on how to implement an image display feature that's
> bugging me. I'm new to widget programming, trying to get up to speed
> with David Fanning's book and other helps, but any short-cuts would be
> appreciated.
>
> The job is to display an MRI image and to be able to adjust the image
> brightness and contrast interactively, without going to any special
> widgets like sliders. The control I have in mind is to
> middle-click the image and then have drag right/left control contrast
> and drag up/down control brightness.
>

I think brightness adjustment is achieved with alpha channels. May require
IDL Object Graphics. There are other ways. Search the groups.google.com
archive for recent threads on this topic.

IDL> ? cursor ; for your
IDL> ? !mouse ; second question.

> It sounds easy but I can't find anything similar described on the web
> etc. to use as a suitable starting point. Question: is changing the
> contrast and brightness to be achieved by re-defining the
> color table and re-scaling the data?

your choice to use data or color scale. use bytscl(), lt & gt to rescale
the data. Probably easier (for debugging too) to do it on data.

-k.

--
Ken Mankoff
LASP://303.492.3264
http://lasp.colorado.edu/~mankoff/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: New book: "Practical IDL Programming"
Next Topic: Re: contour boundaries

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

Current Time: Wed Oct 08 19:02:46 PDT 2025

Total time taken to generate the page: 0.00180 seconds