[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49137] some grayscale images are displayed ba
[Octave-bug-tracker] [bug #49137] some grayscale images are displayed badly
Tue, 20 Sep 2016 13:35:58 +0000 (UTC)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0
Update of bug #49137 (project octave):
Status: None => Confirmed
Follow-up Comment #1:
I think the very first issue is that the image data we get from GraphicsMagick
(imread) are not the original ones.
I tried to run "imfinfo" and "imread" in Octave and Matlab (R2016a on linux)
and the main differences are :
* imfinfo: the "ColorType" is "Grayscale" in Octave and "TrueColor" in Matlab
* imread: consequently returns no cmap in both cases but a 19-by-19 matrix in
Octave and a 19-by-19-by-3 Matlab
I think this problem has already been discussed by Carnë extensively (who I
am ccing). AFAIR it boils down to GraphicsMagick does not give access to the
actual original data.
Now a workaround for the first issue ("imshow (filename)") could be to treat
the image as grayscale when imfinfo tels to do so.
Reply to this item at:
Message sent via/by Savannah