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: Carnë Draug
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 10:21:52 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0

Update of bug #45565 (project octave):

                 Release:                   4.0.0 => dev                    

    _______________________________________________________

Follow-up Comment #3:

This bug (or lack of it), may be dependent on the version of Graphics Magick
installed.

I can see a bug with it but different from the one originally reported:


octave> a = repmat (uint8 (0:255), 100, 1);
octave> imwrite (a, "test.bmp");
octave> [b, c, d] = imread ("test.bmp");
octave> whos
Variables in the current scope:

   Attr Name        Size                     Bytes  Class
   ==== ====        ====                     =====  ===== 
        a         100x256                    25600  uint8
        b         100x256                    25600  uint8
        c           0x0                          0  double
        d           0x0                          0  double



If a bmp file is always an indexed image (is this true?), then it should have
returned a colormap.

    _______________________________________________________

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]