|
Dear All
in a loop I was processing many files and once it proceeded
45th or 46th one- it reported memory overflow.
I checked the previous ImageJ discussions - .flush and .close etc have
already been applied exhustively but was of no use.
I found the following line was causing problem,
imp2 = imp2.flatten();
and replaced the line with the following
ImagePlus imp3 = imp2.flatten();
thinking for " imp2 = imp2.flatten(); "
to point the flatten() image by imp2, internally a temporary allocation
might have been needed and that might not be flushed after re-pointed by
imp2 ...
or whatever - the problem is gone! ... probably this is a bug in
ImagePlus ...
Just thought to share this in case it helps.
Thanks
Tamjid
|