[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45565] Using imwrite to write an 8-bit image
From: |
Ian Journeaux |
Subject: |
[Octave-bug-tracker] [bug #45565] Using imwrite to write an 8-bit image to BMP creates a 24-bit image |
Date: |
Mon, 17 Aug 2015 03:40:04 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 Safari/537.36 |
Follow-up Comment #21, bug #45565 (project octave):
Carne
I was able to compile up Octave 4.1.0+ (MXE) so I could test the fix on my
system.
This seems to work as it should, creating an 8-bit BMP file.
octave> img = uint8 (ones (100, 1) .* [0:255]);
octave> map = gray(256);
octave> imwrite (img, map, "foo-octave.bmp");
If I understand Matlab (maybe I am misinterpreting Matlab)
octave> img = uint8 (ones (100, 1) .* [0:255]);
octave> imwrite (img, "foo-octave.bmp");
should also work but, with Octave, still produces a 24-bit image.
I can see the changes to imwrite from this bug fix so I should have a good
compile of Octave but this is a fresh compile so maybe there is a problem with
the compilation.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45565>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #45565] Using imwrite to write an 8-bit image to BMP creates a 24-bit image,
Ian Journeaux <=