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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #45779] Writing 8-bit grayscale image to bmp f


From: Ian Journeaux
Subject: [Octave-bug-tracker] [bug #45779] Writing 8-bit grayscale image to bmp file should write an indexed image
Date: Tue, 25 Aug 2015 14:56:28 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36

Follow-up Comment #8, bug #45779 (project octave):

I see two reasons to implement this change

1. Matlab compatibility. Whether it is explicitly stated in the documentation
or not, given a uint8 array, Matlab writes a 8-bit-per-sample indexed
grayscale image. Specifying the map might be more precise but this is a place
where Matlab compatibilty would be valuable.
2. Within Octave, if you write a uint8 array using imwrite, and read the array
back in, it comes back in as an 3 channel RGB array instead of the original 1
channel array. 


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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