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

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

[Octave-bug-tracker] [bug #47746] imwrite writes incorrect TIFF pixel va


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #47746] imwrite writes incorrect TIFF pixel values from uint8 array on i686-linux-gnu
Date: Tue, 10 May 2016 18:27:08 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0

Follow-up Comment #6, bug #47746 (project octave):

When building with -O2 (default optimization) on i686, the following fails


x = uint8 (0:255);
alpha = uint8 (0:255);
imwrite (x, "test.tif", "Alpha", alpha);
y = imread ("test.tif");
isequal (x, y)


But it succeeds when I build Octave with -O0. When I examine the pixel values
in gdb with -O0, they are identical between i686 and x86_64, but I get
optimized out when build with -O2.

Other tests still fail even with -O0, such as uint8 rgb image with alpha,
looking at those next.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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