[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52624] gnuplot toolkit binary image is only b
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #52624] gnuplot toolkit binary image is only black pixels |
Date: |
Wed, 13 Dec 2017 15:08:05 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #9, bug #52624 (project octave):
I think the algorithm you have now is right.
The interpretation does depend on the data type (integer vs. float) of the
"cdata" property. Try this example
close all
figure ("colormap", [1 0 0; 0 1 0; 0 0 1]); # RGB map
h = image ([0 1 2 3 4])
## "cdata" is double, therefore indexing begins at 1
## Displayed color is R R G B B
set (h, "cdata", uint8 ([0 1 2 3 4])
## "cdata" is now integer, indexing begins at 0
## Displayed color is R G B B B
Both FLTK and gnuplot produce the same image for the input above.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52624>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #52624] gnuplot toolkit binary image is only black pixels, Dan Sebald, 2017/12/08
- [Octave-bug-tracker] [bug #52624] gnuplot toolkit binary image is only black pixels, Rik, 2017/12/08
- [Octave-bug-tracker] [bug #52624] gnuplot toolkit binary image is only black pixels, Dan Sebald, 2017/12/12
- [Octave-bug-tracker] [bug #52624] gnuplot toolkit binary image is only black pixels, Rik, 2017/12/12
- [Octave-bug-tracker] [bug #52624] gnuplot toolkit binary image is only black pixels, Dan Sebald, 2017/12/12
- [Octave-bug-tracker] [bug #52624] gnuplot toolkit binary image is only black pixels, Rik, 2017/12/12
- [Octave-bug-tracker] [bug #52624] gnuplot toolkit binary image is only black pixels, Dan Sebald, 2017/12/12
- [Octave-bug-tracker] [bug #52624] gnuplot toolkit binary image is only black pixels, Dan Sebald, 2017/12/12
- [Octave-bug-tracker] [bug #52624] gnuplot toolkit binary image is only black pixels, Rik, 2017/12/13
- [Octave-bug-tracker] [bug #52624] gnuplot toolkit binary image is only black pixels,
Rik <=
- [Octave-bug-tracker] [bug #52624] gnuplot toolkit binary image is only black pixels, Dan Sebald, 2017/12/13