[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #41851] ind2rgb values outside range of colour
From: |
Carnë Draug |
Subject: |
[Octave-bug-tracker] [bug #41851] ind2rgb values outside range of colour map |
Date: |
Mon, 17 Mar 2014 15:16:02 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20140207 Firefox/24.0 Iceweasel/24.3.0 |
Update of bug #41851 (project octave):
Status: Invalid => None
_______________________________________________________
Follow-up Comment #8:
Matlab behaviour is plain wrong since the value for that index does not exist.
If instead of an image this was a matrix for some other purpose, would you
think appropriate to give you the last element of the matrix if you tried to
index outside the limit of the matrix? And colours in a colourmap are not
necessarily sorted by intensity.
In addition, "fixing" this will make it much easier for users to make "off by
one" mistakes.
Still, we may not have much of a choice to introduce this error for the sake
of matlab compatibility. So I'm reopened the bug and ask for opinion of others
devs. Let us at least print a big fat warning if users try to index out of the
bounds of the colourmap.
_______________________________________________________
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, 2014/03/13
- [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 <=
- [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
- [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