[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45565] Using imwrite to write an 8-bit iamge
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #45565] Using imwrite to write an 8-bit iamge to BMP creates a 24 bit image |
Date: |
Fri, 17 Jul 2015 02:50:28 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.1.0 |
Update of bug #45565 (project octave):
Category: None => Octave Function
Status: None => Works For Me
Operating System: Microsoft Windows => Any
_______________________________________________________
Follow-up Comment #2:
Thanks for your bug report. AFAICT this is working correctly. If I understand
the BMP file format correctly, 8-bit BMP files are indexed images. To create
an indexed image with imwrite, you must specific a colormap (palette)
argument.
For example, this creates an 8-bit BMP file for me:
octave:1> img = uint8 (ones (100, 1) .* [0:255]);
octave:2> map = rainbow (256);
octave:3> imwrite (img, map, "foo.bmp");
Am I understanding this correctly?
_______________________________________________________
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 iamge to BMP creates a 24 bit image, Ian Journeaux, 2015/07/16
- [Octave-bug-tracker] [bug #45565] Using imwrite to write an 8-bit iamge to BMP creates a 24 bit image, Ian Journeaux, 2015/07/16
- [Octave-bug-tracker] [bug #45565] Using imwrite to write an 8-bit iamge to BMP creates a 24 bit image,
Mike Miller <=
- [Octave-bug-tracker] [bug #45565] Using imwrite to write an 8-bit iamge to BMP creates a 24 bit image, Carnë Draug, 2015/07/17
- [Octave-bug-tracker] [bug #45565] Using imwrite to write an 8-bit iamge to BMP creates a 24 bit image, Ian Journeaux, 2015/07/17
- [Octave-bug-tracker] [bug #45565] Using imwrite to write an 8-bit iamge to BMP creates a 24 bit image, Carnë Draug, 2015/07/17
- [Octave-bug-tracker] [bug #45565] Using imwrite to write an 8-bit iamge to BMP creates a 24 bit image, Ian Journeaux, 2015/07/17
- [Octave-bug-tracker] [bug #45565] Using imwrite to write an 8-bit iamge to BMP creates a 24 bit image, Mike Miller, 2015/07/17
- [Octave-bug-tracker] [bug #45565] Using imwrite to write an 8-bit iamge to BMP creates a 24 bit image, Ian Journeaux, 2015/07/17
- [Octave-bug-tracker] [bug #45565] Using imwrite to write an 8-bit iamge to BMP creates a 24 bit image, Ian Journeaux, 2015/07/17
- [Octave-bug-tracker] [bug #45565] Using imwrite to write an 8-bit iamge to BMP creates a 24 bit image, Carnë Draug, 2015/07/17
- [Octave-bug-tracker] [bug #45565] Using imwrite to write an 8-bit iamge to BMP creates a 24 bit image, Carnë Draug, 2015/07/20
- [Octave-bug-tracker] [bug #45565] Using imwrite to write an 8-bit iamge to BMP creates a 24 bit image, Ian Journeaux, 2015/07/20