java memory error with cpselect



Hello,

I'm using the image processing toolbox to register a large number of
images. I'm batch processing with the help of a GUI so the first
step is to select control points for a bunch of images at once. I
invariably generate a Java out-of-memory error after using the
cpselect tool a number of times. (I can generate the same error by
running cpselect repeatedly from the command line, so it's not my GUI
m-file.)

I've increased the maximum java memory to 66% of my physical memory
and this allows me to process about 40 images before I crash--not
intolerable, but still....

I've downloaded the monitormatlab .m file (a GUI that shows Matlab's
memory usage) and can see that each time I invoke cpselect the java
memory allocation increases by about 8Mb.

clear, clear java, and clear all do not help.

I'm using Matlab R14SP2 on a Pentium running Windows XP with 512MB of
physical memory and Java 1.4.2_04 from Sun.

If anyone can tell me what the problem is--or better yet how to fix
it--I'd greatly appreciate it.

-thanks,
paul.
.



Relevant Pages

  • java memory leak in cygwin(s Xwin)?
    ... I have a java application (for working (export, import, generate, ... Cygwin serves for transfering of the graphical output ... I've checked the used memory of the process and its increasing (about ... 20k) when I send to the GUI output some info about proceeded commits ...
    (comp.lang.java.programmer)
  • Re: Java getResource() problem with matlab
    ... The problem is to do with loading images in the java gui ... files in a jar file is added to the matlab java path. ... not get loaded in the next time the gui is run from matlab. ...
    (comp.soft-sys.matlab)
  • out of memory
    ... which stores a larg number ... of images I get the message ... How do I set my java to use more memory? ...
    (comp.lang.java)
  • Re: Newbie Needs Ada Advice
    ... Ada as the "engine" for my program, and somehow use Java to create the ... GUI and deal with images. ...
    (comp.lang.ada)
  • Re: ImageIO memory issue
    ... the memory. ... Java is terribly 'cachey' with images. ...
    (comp.lang.java.programmer)