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 13:11:59 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.8.0

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

Actually, if you enable ImageJ's SCIFIO2, or use the bioformats importer, then
ImageJ will open the file.

However, you can use the following which works fine in ImageJ, even when using
plain ImageJ 1.


octave> a = repmat (uint8 (0:255), 100, 1);
octave> img = uint8 (ones (100, 1) .* [0:255]);
octave> map = rainbow (256);
octave> imwrite (ind2rgb (img, map), "foo.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]