[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38850] imread load an image as 1x1 matrix
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #38850] imread load an image as 1x1 matrix |
Date: |
Mon, 29 Apr 2013 15:26:51 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20100101 Firefox/17.0 |
Follow-up Comment #4, bug #38850 (project octave):
Works for me.
Are you sure you are calling size correctly? Please note the difference
between "size(x)" and "size x". The latter is equivalent to "size('x')" in
Octave.
Also note that the return values from imread are not RGB components, see the
help for imread.
octave:1> [R, G, B] = imread ("GNU-Linux.png");
octave:2> size (R)
ans =
946 1024 3
octave:3> size (G)
ans =
0 0
octave:4> size (B)
ans =
0 0
octave:5> size R
ans =
1 1
octave:6> size G
ans =
1 1
octave:7> size B
ans =
1 1
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38850>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/