bugGNU Octave - Bugs: bug #43217, imread does not find file

 
 

bug #43217: imread does not find file

Submitted by:  Matthias Jüschke <maju>
Submitted on:  Sat 13 Sep 2014 09:16:54 AM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: InvalidAssigned to: None
Originator Name: MajuOpen/Closed: Closed
Release: 3.6.4Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sat 13 Sep 2014 02:55:27 PM UTC, comment #1:

Thanks for your bug report. I don't think there is a bug here, though. The ls function is supposed to pad filenames with trailing spaces to make a character matrix. And imread takes the full string as the filename to load, it shouldn't try to trim spaces. You should use strtrim if you want to use the rows of ls as file names to other functions. Or use the dir function instead, which returns a struct array of file information instead of a char matrix.

Mike Miller <mtmiller>
Project Administrator
Sat 13 Sep 2014 09:16:54 AM UTC, original submission:

With the two files 'test.jpg' and 'test1.jpg'
fails, probably caused by the trailing space.

Matthias Jüschke <maju>

 

(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 maju (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 13 Sep 2014 02:55:27 PM UTCmtmillerStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1