[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #41851] ind2rgb tests
From: |
Carnë Draug |
Subject: |
[Octave-bug-tracker] [bug #41851] ind2rgb tests |
Date: |
Thu, 13 Mar 2014 17:20:44 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20140207 Firefox/24.0 Iceweasel/24.3.0 |
Follow-up Comment #1, bug #41851 (project octave):
I am a bit confused by the bug report. Your first sample are the results you
get in Matlab or Octave? I do not get an error, and it works correctly
(althout not the results you are displaying). Using Octave 3.8.1:
img = [2 4 5; 3 2 5; 1 2 4];
map = [0.0 0.0 0.0
0.2 0.4 0.6
0.4 0.4 0.5
0.3 0.7 1.0
0.1 0.5 0.8];
ind2rgb (double (img), map)
ans =
ans(:,:,1) =
0.20000 0.30000 0.10000
0.40000 0.20000 0.10000
0.00000 0.20000 0.30000
ans(:,:,2) =
0.40000 0.70000 0.50000
0.40000 0.40000 0.50000
0.00000 0.40000 0.70000
ans(:,:,3) =
0.60000 1.00000 0.80000
0.50000 0.60000 0.80000
0.00000 0.60000 1.00000
which should be the correct values.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?41851>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #41851] ind2rgb tests, Guillaume, 2014/03/13
- [Octave-bug-tracker] [bug #41851] ind2rgb tests,
Carnë Draug <=
- [Octave-bug-tracker] [bug #41851] ind2rgb tests, Guillaume, 2014/03/13
- [Octave-bug-tracker] [bug #41851] ind2rgb tests, Rik, 2014/03/13
- [Octave-bug-tracker] [bug #41851] ind2rgb tests, Carnë Draug, 2014/03/13
- [Octave-bug-tracker] [bug #41851] ind2rgb tests, Carnë Draug, 2014/03/13
- [Octave-bug-tracker] [bug #41851] ind2rgb tests, Guillaume, 2014/03/14
- [Octave-bug-tracker] [bug #41851] ind2rgb values outside range of colour map, Carnë Draug, 2014/03/14
- [Octave-bug-tracker] [bug #41851] ind2rgb values outside range of colour map, Guillaume, 2014/03/17
- [Octave-bug-tracker] [bug #41851] ind2rgb values outside range of colour map, Carnë Draug, 2014/03/17
- [Octave-bug-tracker] [bug #41851] ind2rgb values outside range of colour map, Rik, 2014/03/17
- [Octave-bug-tracker] [bug #41851] ind2rgb values outside range of colour map, Guillaume, 2014/03/17