White images with 'imshow'
John W. Eaton
jwe at octave.org
Tue May 26 17:20:50 CDT 2009
On 26-May-2009, Søren Hauberg wrote:
| I honestly don't know the details of how Matlab works here. I would just
| do a
|
| im = ind2rgb (X, map);
|
| if 'imshow' is called with an indexed image and a colormap. Sadly, I
| doubt that this is compatible, as I think Matlab stores the indexed
| image in the 'CData' of the handle returned by 'imshow'.
|
| Does anybody have an idea of when (or if) Matlab converts between
| indexed and RGB images when they are showed?
OK, I don't know what the right change is then. But my change is not
the right thing, so I undid it.
This is another bug that should be fixed before 3.2.0 is released
because imshow is doing the wrong thing for indexed images. I thought
it used to work at some point, but it also seems broken in 3.0.5.
jwe
More information about the Bug-octave
mailing list