|
|
|
Re: Displaying a plot and a true color image on the same window [message #24892 is a reply to message #24891] |
Sun, 29 April 2001 17:09   |
Alok Nagdev
Messages: 11 Registered: April 2001
|
Junior Member |
|
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<font color="#3333FF">Thanks David, but I'm still having the same problem...probably
I couldnt phrase the problem properly. Here it is again:</font><font color="#3333FF"></font>
<p><font color="#3333FF">I'm displaying some bytescaled elevation data
using color table (in my case its RAINBOW with top WHITE) below this I'm
trying to display true color jpeg images on the same window. As soon as
the color table is loaded the color images are displayed according to the
color table being used, and loose their true color.</font><font color="#3333FF"></font>
<p><font color="#3333FF">I found that this is due to the color table as
if I dont load the color table, images are displayed perfectly fine.</font><font color="#3333FF"></font>
<p><font color="#3333FF">Hope this time I phrased it correctly!!</font><font color="#3333FF"></font>
<p><font color="#3333FF">Thanks,</font>
<br><font color="#3333FF">-Alok</font>
<br>
<p>David Fanning wrote:
<blockquote TYPE=CITE>
<br>Well, now that I read this a little more closely,
<br>I think the problem is that you are trying to
<br>display these images on an 8-bit display. This
<br>makes the problem more difficult, but not
<br>impossible.
<p>What you need to do is make all your images and your
<br>color bar share the same color space. I think the
<br>sensible way to do this is to use COLOR_QUAN with
<br>the CUBE keyword set to 6 on all your image. This
<br>will quantitize your colors to 216 values that
<br>can faithfully (more or less) represent both the
<br>images and (I presume) color bar.
<p>Cheers,
<p>David
<br>--
<br>David Fanning, Ph.D.
<br>Fanning Software Consulting
<br>Phone: 970-221-0438 E-Mail: davidf@dfanning.com
<br>Coyote's Guide to IDL Programming: <a href="http://www.dfanning.com/">http://www.dfanning.com/</a>
<br>Toll-Free IDL Book Orders: 1-888-461-0155</blockquote>
</html>
|
|
|
|
|
Re: Displaying a plot and a true color image on the same window [message #24941 is a reply to message #24889] |
Thu, 03 May 2001 07:25  |
Martin Schultz
Messages: 515 Registered: August 1997
|
Senior Member |
|
|
davidf@dfanning.com (David Fanning) writes:
> David Fanning (davidf@dfanning.com) writes:
>
>>> I'm displaying some bytescaled elevation data using color table (in my case
>>> its RAINBOW with top WHITE) below this I'm trying to display true color jpeg
>>> images on the same window. As soon as the color table is loaded the color
>>> images are displayed according to the color table being used, and loose their
>>> true color.
>
> Here is something else to try. Use my program TVIMAGE to
> display the image data, rather than TV. That way, you
> won't have to worry about all the decomposed stuff.
> Does that help?
>
> Cheers,
>
> David
... or read David's article on loading two color tables together
(provided you are using 8 bit colors),
Martin
--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
|
|
|