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

Home » Public Forums » archive » Re: color value interpolation from colorbar
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: color value interpolation from colorbar [message #64127 is a reply to message #64125] Thu, 04 December 2008 09:38 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
j.coenia@gmail.com writes:

> I have a color-coded medical image.
>
> There is a colorbar on the image, for example a red-to-yellow gradient
> valued from 1 to 100.
>
> There is *not* a one-to-one correspondence between the colors in the
> colorbar and the colors in the image. There are many more
> intermediate reds, oranges, and yellows in the image than in the
> colorbar.
>
> What is the correct way to interpolate gradient values to all the
> unknown image colors from the discrete colors/gradients defined in the
> colorbar?

First of all, if there are colors in the image that are not
in the colorbar, then the color bar is fairly useless to you.
My guess is that this has been coded incorrectly. (There can
be colors in the colorbar that are not in the image, of course,
but not the other way around.)

I *suppose* a color bar could be drawn with discrete colors from
the image, so that the user could be encouraged to interpolate
values between colors, but this would be a lousy way to run a
railroad and the programmer should probably have his IEPA card
revoked.

> (The documentation for INTERPOL and INTERPOLATE has not helped me so
> far.)

No, I can imagine not. :-)

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Obtain Pixel values in ENVI and report those to IDL
Next Topic: Irregular Satellite data plotting

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

Current Time: Sat Oct 11 10:52:42 PDT 2025

Total time taken to generate the page: 1.44739 seconds