octave-bug-tracker
[Top][All Lists]
Advanced

[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: Ian Journeaux
Subject: [Octave-bug-tracker] [bug #45565] Using imwrite to write an 8-bit iamge to BMP creates a 24 bit image
Date: Mon, 20 Jul 2015 15:19:33 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36

Follow-up Comment #12, bug #45565 (project octave):

Thanks Carne for looking at this.

It seem that this must be related to Octave under Windows. 

When I execute ( I am not sure how to insert of code block in the comment)

octave> img = uint8 (ones (100, 1) .* [0:255]);
octave> map = gray(256);
octave> imwrite (img, map, "foo-octave.bmp");
octave> exit

The resulting image has a bit depth of 32 and when I try and open it in ImageJ
I get a "Compression Not Supported" error. 32 is an odd bit depth. 

Executing 

octave> imwrite (img, "foo-octave.bmp");

produces and image with a bit depth of 24.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45565>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]