[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 19:23:26 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0 |
Follow-up Comment #8, bug #47746 (project octave):
Attaching the standalone C++ program I wrote to emulate what I think Octave is
doing.
In Octave running in gdb, I get the following (at __magick_read__.cc line
1215):
(gdb) p pix[1]
$6 = {blue = 256, green = 256, red = 256, opacity = 65278}
(gdb) p pix[2]
$7 = {blue = 513, green = 513, red = 513, opacity = 65021}
These are off by 1, but should still evaluate to 8-bit pixel values of 1, 2,
etc. I even added a round when constructing the Color, values went up by 1
(257, 514, etc) but the image file is still incorrect.
(file #37121)
_______________________________________________________
Additional Item Attachment:
File name: gmtest.cc Size:0 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47746>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #47746] imwrite writes incorrect TIFF pixel values from uint8 array on i686-linux-gnu, Carnë Draug, 2016/05/03
- [Octave-bug-tracker] [bug #47746] imwrite writes incorrect TIFF pixel values from uint8 array on i686-linux-gnu, Mike Miller, 2016/05/08
- [Octave-bug-tracker] [bug #47746] imwrite writes incorrect TIFF pixel values from uint8 array on i686-linux-gnu, Mike Miller, 2016/05/10
- [Octave-bug-tracker] [bug #47746] imwrite writes incorrect TIFF pixel values from uint8 array on i686-linux-gnu, Mike Miller, 2016/05/10
- [Octave-bug-tracker] [bug #47746] imwrite writes incorrect TIFF pixel values from uint8 array on i686-linux-gnu, Mike Miller, 2016/05/10
- [Octave-bug-tracker] [bug #47746] imwrite writes incorrect TIFF pixel values from uint8 array on i686-linux-gnu,
Mike Miller <=
- [Octave-bug-tracker] [bug #47746] imwrite writes incorrect TIFF pixel values from uint8 array on i686-linux-gnu, Mike Miller, 2016/05/11
- [Octave-bug-tracker] [bug #47746] imwrite writes incorrect TIFF pixel values from uint8 array on i686-linux-gnu, Mike Miller, 2016/05/11
- [Octave-bug-tracker] [bug #47746] imwrite writes incorrect TIFF pixel values from uint8 array on i686-linux-gnu, Mike Miller, 2016/05/19
- [Octave-bug-tracker] [bug #47746] imwrite writes incorrect TIFF pixel values from uint8 array on i686-linux-gnu, Mike Miller, 2016/05/23
- [Octave-bug-tracker] [bug #47746] imwrite writes incorrect TIFF pixel values from uint8 array on i686-linux-gnu, Mike Miller, 2016/05/23