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

Home » Public Forums » archive » Interactive Contrast/Brightness of Images
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Interactive Contrast/Brightness of Images [message #27803] Wed, 07 November 2001 10:39 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

I've written a short article about how to interactively
change the contrast and brightness of an image. These
quantities are also called the window level and window
width of an image, too. This kind of functionality is
often required, for example, with 16-bit medical images.

You can find the article here:

http://www.dfanning.com/ip_tips/contrast.html

I also wrote a program, named WindowImage, to
demonstrate the idea. You can find the program
here:

http://www.dfanning.com/programs/windowimage.pro

You will need my TVImage program as well if you
want to run this program:

http://www.dfanning.com/programs/tvimage.pro

Run the program like this:

IDL> WindowImage

The trick in such a program is to find a neat
algorithm for changing the contrast and brightness
as you drag the cursor either horizontally or vertically
on the image. I'm not totally enamored with the one
I came up with and I suspect someone out there has
a better one. If so, I'd like to hear about it. :-)

If you haven't visited the Coyote lately, you might
want to have a look. I've been busy the past couple
of weeks. :-)

You can find over 20 new programming tips here:

http://www.dfanning.com/documents/tips.html#NewTips

As always, I appreciate the feedback.

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
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
[Message index]
 
Read Message
Read Message
Previous Topic: Re: basic 3D data manipulation question
Next Topic: Re: Interactive Contrast/Brightness of Images

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

Current Time: Wed Oct 08 14:58:15 PDT 2025

Total time taken to generate the page: 0.00228 seconds