Re: I'd like to know how to measure all ROIs (200000~500000) using the macro as fast as manual measuring.
Posted by
hatopop100 on
May 28, 2020; 8:48am
URL: http://imagej.273.s1.nabble.com/I-d-like-to-know-how-to-measure-all-ROIs-200000-500000-using-the-macro-as-fast-as-manual-measuring-tp5023346p5023408.html
Dear all,
Thanks to Wayne, the problem with timing roiManager(“measure”) is fixed by
waiting until the separate
thread it runs on finishes.
I performed the macro on "v1.53b40" of ImageJ for measuring 180785 ROIs as
below.
-----
timeBefore=getTime();// before part of the macro.
roiManager("Deselect");
roiManager("Measure");
timeAfter=getTime();// after the part.
print("time ",timeAfter-timeBefore); //
-----
This time, I could obtain the time-log like "time 2896" on ImageJ
(v1.53b40).
It's about 23-times faster than "time 67012" obtained by the previous
version of ImageJ (v1.53a).
I really appreciate it.
Sincerely,
Hayato
--
Sent from:
http://imagej.1557.x6.nabble.com/--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html