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

Home » Public Forums » archive » Re: adjustimg brightness of an image
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: adjustimg brightness of an image [message #13145 is a reply to message #13141] Mon, 19 October 1998 00:00 Go to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Anil Kochhar wrote:
> Hi,
> I am writing a program which scales images(i.e. images of galaxies) ,
> adjusts their brightness and apparent distances, and then adds each image
> to a final image, which in the end just comprises all of the images which
> were added to it.
> Many of the images on the final image appear very faint, and I was told
> that one can use the tvscl command to adjust brightness by using the following
> syntax: tvscl<Number1>Number2
[deleted information about problems with TVSCL]

In this case, you should use BYTSCL to convert your imagery to a scaled
byte array. Here's an example

top = !d.table_size-1
data = dist(256)
bytimg = bytscl( data, top=top )
tv, bytimg

If you want to scale your image across a certain range (other than the
min/max of your input array), use the MIN and MAX keywords, e.g.

bytimg = bytscl( data, top=top, min=10.0, max=100.0 )
tv, bytimg

For more information, see the online help for BYTSCL.

Cheers,
Liam.

---
Liam E. Gumley
Space Science and Engineering Center, UW-Madison
1225 W. Dayton St., Madison WI 53706, USA
Phone (608) 265-5358, Fax (608) 262-5974
http://cimss.ssec.wisc.edu/~gumley
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Printing color line-plots on non-PS printers...
Next Topic: Re: dongle licence problems

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

Current Time: Tue Dec 02 11:18:49 PST 2025

Total time taken to generate the page: 0.48202 seconds