Login  Register

Using Enlarge function with very large ROI sets

Posted by Jia-Ren_Lin on Sep 26, 2014; 5:39pm
URL: http://imagej.273.s1.nabble.com/Using-Enlarge-function-with-very-large-ROI-sets-tp5009786.html

Dear experts,

I'm trying to quantify timelapse images with nuclear fluorescent marker for
segmentation and also take cytoplasmic measurements by enlarging ROIs.
However, because of very large ROI sets (>50,000), my macro ran very slow.

counts=roiManager("count");
for(i=0; i<counts; i++) {
    roiManager(&quot;Select&quot;, i);
    run(&quot;Measure&quot;);
    run(&quot;Enlarge...&quot;, &quot;enlarge=4&quot;);
    run(&quot;Measure&quot;);
}</b>


I've already setBatchMode("true").  It helps a little (save about half
time),  but I was wondering if there is a way to speed up my macro.

Thanks,
Jerry