[?] Color management. [message #5940] |
Sat, 09 March 1996 00:00 |
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 |
+----------------------------------------------------------- -------------------+
|
|
|