[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42107] Image colors are inverted when printin
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #42107] Image colors are inverted when printing a plot to a file with FLTK |
Date: |
Sun, 13 Apr 2014 18:29:09 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 |
Follow-up Comment #3, bug #42107 (project octave):
The problem is that the colors are being inverted. Rnew = 1 - Rold, Gnew = 1
- Gold, Bnew = 1 - Bold. Interestingly, this problem does not occur for
indexed images. The following code works.
img = imread ("rainbow.jpg");
[img2, map] = rgb2ind (img);
imshow (img2, map);
print -djpg test.jpg
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42107>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/