Login  Register

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 21, 2020; 3:47pm
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-tp5023346p5023351.html

Dear Kees,

Thank you so much for your quick support.

1)
I pasted your macro on "Script..." (language: IJ1 Macro; Is it OK?) and
performed it 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); //
-----

I could obtain a time-log like "time 66700".
But I think it's not fast because it took ~5 sec by manual operation.

If possible, I'd like to know why my macro was slow than manual operation.

Again, I appreciate your help.

Sincerely,
Hayato



--
Sent from: http://imagej.1557.x6.nabble.com/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html