octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #37368] imread errors when passing the info op


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #37368] imread errors when passing the info option
Date: Sun, 16 Sep 2012 16:58:37 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.7) Gecko/20100101 Firefox/10.0.7 Iceweasel/10.0.7

URL:
  <http://savannah.gnu.org/bugs/?37368>

                 Summary: imread errors when passing the info option
                 Project: GNU Octave
            Submitted by: carandraug
            Submitted on: Sun 16 Sep 2012 04:58:36 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.2
        Operating System: Any

    _______________________________________________________

Details:

Hi

one of the options of imread (in Matlab)  is "Info" which then takes the
output of imfinfo to speed up the reading of the image. I understand that it's
not implemented (we probably don't need it to speed up anything) but would be
handy to at least ignore it. However, it only errors when there's no index
used. For example, the following works fine:


info = imfinfo (path);
img  = imread (path, "Info", info);
-verbatim

but the following fails (it should retrieve the 2nd page of a multi-page
TIFF):


> info = imfinfo (path);
> img  = imread (path, 2, "Info", info);
error: imread: invalid image file: Invalid call to __magick_read__.  Correct
usage is:

 -- Function File: M = __magick_read__(FNAME, INDEX)
 -- Function File: [M, COLORMAP] = __magick_read__(FNAME, INDEX)
 -- Function File: [M, COLORMAP, ALPHA] = __magick_read__(FNAME, INDEX)
 
error: called from:
error:   /usr/share/octave/3.6.2/m/image/imread.m at line 74, column 7
-verbatim

Carnë




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37368>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]