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

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

[Octave-bug-tracker] [bug #51738] bug in montage function


From: Tyson Whitehead
Subject: [Octave-bug-tracker] [bug #51738] bug in montage function
Date: Sat, 12 Aug 2017 11:09:57 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36

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

                 Summary: bug in montage function
                 Project: GNU Octave
            Submitted by: twhitehead
            Submitted on: Sat 12 Aug 2017 03:09:55 PM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Running the montage function on a series of greyscale images returns the
following error

octave> montage({"grey1.png","grey2.png"})

error: montage: A(I): index out of bounds; value 2 out of bound 1
error: called from
    montage at line 146 column 39

The culprit line 146 is

[images(:,:,:,page_range), map] = imread (img_info(idx).Filename, 1:nPages);  
                  


and it looks to me like it should be

[images(:,:,:,page_range), map] = imread (img_info.Filename, 1:nPages);       
             

as img_info is the current image according to the earlier line

img_info   = infos{idx};                                                      
                    

Cheers!  -Tyson

PS:  The earlier check on line 144

if (size (images, 3) == 1 || all (strcmp {img_info(:).ColorType},
"truecolor")))                  

also looks suspect to me as again img_info is the current image info and not
the collection of image infos.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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