Re: [ImageJ macro] roiManager+setBatchMode leads to "out of memory" (sometimes)
Posted by seb-7 on Jul 09, 2008; 9:28pm
URL: http://imagej.273.s1.nabble.com/ImageJ-macro-roiManager-setBatchMode-leads-to-out-of-memory-sometimes-tp3695631p3695633.html
Wayne Rasband wrote:
> This bug is fixed in the v1.41h daily build. The ROI Manager "Update"
> option was saving a reference to the image, which prevented it from
> being garbage collected. There is also a small bug in the macro that
> causes it to fail if the background color is not black. This can be
> fixed by adding
>
> setBackgroundColor(0, 0, 0);
Thanks a lot Wayne, it is at least 20x faster with setBatchMode(true).
And I didn't think of the background color bug, I need to check other
macros as I always assume black background...
Thanks!
Best regards
sebastien