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: Thu, 16 Jul 2015 22:15:57 +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 #1, bug #45565 (project octave):

When trying to write an 8-bit image to a BMP file,  the image ends up as a
24-bit image. This is not a problem with jpg and tif file format.

a = repmat (uint8 (0:255), 100, 1); 
imwrite (a, "test.jpg"); 
imwrite (a, "test.tif"); 
imwrite (a, "test.bmp"); 

    _______________________________________________________

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]