[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #32986] imread() reads .png with alpha channel
From: |
Carnë Draug |
Subject: |
[Octave-bug-tracker] [bug #32986] imread() reads .png with alpha channel as an unexpected array format |
Date: |
Wed, 31 Jul 2013 10:13:12 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130626 Firefox/17.0 Iceweasel/17.0.7 |
Follow-up Comment #10, bug #32986 (project octave):
With both your cases I get an uint8 matrix of 512*512*3, an empty colormap
(class double), and a uint8 matrix of 512*512 for the alpha channel.
I have attached what imread is currently reading (it's in Octave binary
format). Could you take a look and see if they match what you would expect?
The image seems to match what GIMP shows, but I'm unsure about the alpha
channel.
octave> [a1, b1, c1] = imread ("alpha.png" );
octave> [a2, b2, c2] = imread ("alpha2.png" );
octave> whos
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
a1 512x512x3 786432 uint8
a2 512x512x3 786432 uint8
b1 0x0 0 double
b2 0x0 0 double
c1 512x512 262144 uint8
c2 512x512 262144 uint8
(file #28720)
_______________________________________________________
Additional Item Attachment:
File name: alpha_test.mat.tar.xz Size:220 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?32986>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/