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

Home » Public Forums » archive » [?] Color management.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
[?] Color management. [message #5940] Sat, 09 March 1996 00:00
trond is currently offline  trond
Messages: 9
Registered: June 1994
Junior Member
Hi:

I create a window and read in a color gif (using read_gif,name,img,r,g,b
followed by a tvlct,r,g,b), which I 'paint' the window with (somewhat
like the netscape html BACKGROUND extension). Next, on this bluish
(see my web page) backdrop I want to tv,a,x,y some scientific black &
white images. I read them in using my home made (very useful) read_pgm
program (the files are in standard pgm format). But when I tv them on the
blue backdrop, it turns out that certain pixel values in my black and
white pictures get mapped into blue.
Now, I can see why this could happen.... but the fix for the problem is not
immediately obvious to me. I would rather not have to manually manage
the color tables.
My black and white images do not contain all 255 maximum available
colors - only about 245 colors (but I guess _which_ 245 colors varies from
picture to picture.... so presumably that may have to be equalized using some
not too destructive algorithm) and the background takes up only two
colors (plus black).

Thanks for any help!

Trond
--
+----------------------------------------------------------- -------------------+
| Trond S. Trondsen <VE6NOR> <http://www.ucalgary.ca/~tstronds/pai/pai.html> |
| Institute for Space Research, Calgary, Canada - Standard Disclaimer Applies |
+----------------------------------------------------------- -------------------+
[Message index]
 
Read Message
Previous Topic: Re: Catching events within Widgets
Next Topic: Re: Problem with CW_DEFROI

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

Current Time: Fri Oct 10 22:20:00 PDT 2025

Total time taken to generate the page: 1.04033 seconds