MATLAB out of java heap memory when importing a gif -


i'm using matlab r2012b 64-bit on windows 8.1 machine 8gb of ram. i'm trying import 6mb gif image in matlab using imread, when happens:

>> = imread('nightearth.gif');    error using readgif>read_multiframe_gif (line 73)    java exception occurred:    java.lang.outofmemoryerror: java heap space      @ java.awt.image.samplemodel.getpixels(unknown source)      @ java.awt.image.raster.getpixels(unknown source)  error in readgif (line 33) [x,map] = read_multiframe_gif(filename); error in imread (line 434)     [x, map] = feval(fmt_s.read, filename, extraargs{:}); 

as suggested various sources in mathworks forums , documentation, increased java heap size in preferences. didn't work however; increasing maximum value of 2014mb doesn't solve problem. going wrong here? i'm puzzled since gif 6mb , available memory looks more sufficient.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -