[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #47707] hist takes up a lot of memory
From: |
Carnë Draug |
Subject: |
[Octave-bug-tracker] [bug #47707] hist takes up a lot of memory |
Date: |
Fri, 15 Apr 2016 18:05:53 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.7.1 |
URL:
<http://savannah.gnu.org/bugs/?47707>
Summary: hist takes up a lot of memory
Project: GNU Octave
Submitted by: carandraug
Submitted on: Fri 15 Apr 2016 18:05:52 GMT
Category: Performance
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Performance
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
The function hist converts the input vector or matrix to class double to avoid
any issues with integers
http://hg.savannah.gnu.org/hgweb/octave/file/1dda942a2514/scripts/plot/draw/hist.m
## Avoid issues with integer types for x and y
x = double (x);
y = double (y);
If the input is uint8 (very common in images), that's an 8x increase in memory
usage. In my current case, I have a 480x480x15x28 image (uint16) which is
roughly 190Mb but Octave needs 4GB of memory to make an histogram of the
image.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47707>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #47707] hist takes up a lot of memory,
Carnë Draug <=