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:42pm
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-tp5023346p5023352.html

Dear Jeremy Adler,

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.

nRois=roiManager("count");// entries in ROI Manager.
testArray=Array.getSequence(nRois); // creates an array with nRois entries,
numbered sequentially. from 0 upwards

roiManager("Select", testArray);// select all ROIs.
roiManager("Measure");// measure all ROIs.

timeAfter=getTime();// after the part.
print("time ",timeAfter-timeBefore); //
-----

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

2)
I'd like to analyze cells stained with multi-colors by immunocytochemistry.
Therefore, after I obtained ROIs using "Analyze Particles..." for one of the
colors, I always stored as "RoiSet.zip" for analyzing other color images.
And I have already had many RoiSet.zip for slices.

3)
I didn't know how to check on how fast a part of the macro runs.
It's very useful.

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