Re: Philosophical Scaling Question [message #51600 is a reply to message #51599] |
Mon, 04 December 2006 08:58   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Paolo Grigis writes:
> Well, as I see it, you are scaling the wrong quantity:
> it is not the *values* of r,g,b that should be scaled,
> but their *indices*... try:
>
> ind=bindgen(256)
> TVLCT, r[LogScl(ind)], g[LogScl(ind)], b[LogScl(ind)]
Yes, I just came to that conclusion myself. This works
as expected. Thank you!
Now the question remains: How would you make a
logarithmic color bar in a general way that would
accommodate various log scalings? I believe I could
do it if I were also displaying the image, but I
have grave doubts about it being possible to do it
generally.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|