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 and 8-bit image to BMP produce


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #45779] Writing and 8-bit image to BMP produces a 24-bit bmp
Date: Mon, 17 Aug 2015 15:04:00 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Firefox/38.0

Update of bug #45779 (project octave):

                  Status:                    None => Confirmed              
        Operating System:       Microsoft Windows => Any                    

    _______________________________________________________

Follow-up Comment #1:

According to https://www.mathworks.com/help/matlab/ref/imwrite.html, Matlab
can write BMP in 1-bit, 8-bit, or 24-bit formats. I'm assuming this means if a
logical matrix is passed in, then a 1-bit image is written with a black-white
palette. And if a uint8 matrix is passed in, it is written in 8-bit indexed
format with an 8-bit grayscale palette.

Determining the image format from the input matrix type is not something that
Octave imwrite handles yet, I think.

    _______________________________________________________

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]