[Top][All Lists]

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

[Octave-bug-tracker] [bug #41674] Temporary arrays in imresize are doubl

From: Ian Journeaux
Subject: [Octave-bug-tracker] [bug #41674] Temporary arrays in imresize are doubles
Date: Sat, 22 Feb 2014 23:30:24 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36


                 Summary: Temporary arrays in imresize are doubles
                 Project: GNU Octave
            Submitted by: ijourneaux
            Submitted on: Sat 22 Feb 2014 11:30:23 PM GMT
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Performance
                  Status: None
             Assigned to: None
         Originator Name: Ian Journeaux
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.0
        Operating System: Microsoft Windows



When using imresize on larger images, I end up running out of memory. In the
process of troubleshooting this, I noticed that in 
imresize there is a call to meshgrid
[XI, YI] = meshgrid (linspace (1, inCols, outCols), linspace (1, inRows,

im = imremap (im, XI, YI, method);

Since the default cast for XI and YI is double, the memory footprint is very
large for large images.

If the arrays XI and YI are cast as single the out of memory condition is

This is probably not the ideal solution (or even a good solution) but it
dramatically reduces the memory footprint of imresize.



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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