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

Home » Public Forums » archive » Re: advanced image enhancement
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: advanced image enhancement [message #32481 is a reply to message #32480] Mon, 14 October 2002 09:51 Go to previous messageGo to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
David Oesch wrote:
> Is there any other possibility to enhance the content of an bytarr
> image? I tried BYTSCL and HIST_EQUAL, but ?m actually lokking for a Root
> enhancement, also known as a logarithmic transform, which particularly
> effective with images whose grey level distribution exhibits right
> skewness. The root enhancement stretches the dynamic range of the low
> end of the image while compressing its high end. It tends to lend an
> overall brightening to the resultant image.Has anyone implemented such
> an enhancement in IDL?

Here's a simple example of a square root enhancement:

a = dist(256)
scale = (a - min(a)) / (max(a) - min(a))
tv, byte(255.0 * scale) ; linear enhancement
tv, byte(255.0 * sqrt(scale)) ; square root enhancement

For extra credit, turn this into a function that accepts MIN, MAX,
BOTTOM, and NCOLORS keywords.

Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Writing text into JPEG
Next Topic: Re: Writing text into JPEG

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

Current Time: Sat Oct 11 10:24:57 PDT 2025

Total time taken to generate the page: 1.43574 seconds