bugGNU Octave - Bugs: bug #38850, imread load an image as 1x1 matrix

 
 

bug #38850: imread load an image as 1x1 matrix

Submitted by:  Rodrigo <rudregues>
Submitted on:  Mon 29 Apr 2013 01:45:35 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: InvalidAssigned to: None
Originator Name: RodrigoOpen/Closed: Closed
Release: 3.6.2Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 29 Apr 2013 03:33:09 PM UTC, comment #5:

What a lack off attention! Thanks Mike, I was using size R instead off size(R)

It's working now.

Rodrigo <rudregues>
Mon 29 Apr 2013 03:26:51 PM UTC, comment #4:

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.

Mike Miller <mtmiller>
Project Administrator
Mon 29 Apr 2013 03:23:50 PM UTC, comment #3:

http://files.myopera.com/vrupendra/albums/919368/GNU-Linux.png

I've tried other images from my HD too, but get the same result.

Rodrigo <rudregues>
Mon 29 Apr 2013 03:04:13 PM UTC, comment #2:

What is the image you're trying to load?

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Mon 29 Apr 2013 02:49:52 PM UTC, comment #1:

Update: It also happens with my other octave version (3.6.4)

It's strange, because here https://savannah.gnu.org/bugs/?36820 the user Andreas can get at least an 600 800 1 matrix

Rodrigo <rudregues>
Mon 29 Apr 2013 01:45:35 PM UTC, original submission:

octave:2> [R, G, B] = imread("GNU-Linux.png");
warning: your version of GraphicsMagick limits images to 8 bits per pixel
octave:3> size R
ans =

1 1

octave:4> size G
ans =

1 1

octave:5> size B
ans =

1 1

It also happens in 3.6.3 and I've tried png and jpg.

Rodrigo <rudregues>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by rudregues (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 29 Apr 2013 03:36:44 PM UTCmtmillerStatusNeed Info=>Invalid
      Open/ClosedOpen=>Closed
    Mon 29 Apr 2013 03:04:13 PM UTCjordighStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1