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 Krs5 on May 21, 2020; 8:43am
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-tp5023346p5023348.html

Dear Hayato

If you just want to measure all ROIs and nothing else than:

----------------------------------
roiManager("Deselect");
roiManager("Measure");
----------------------------------

should do the job. If no ROIs are selected in the ROI Manager than all are used when you use roiManager("Measure");

Best wishes

Kees
________________________________
From: hatopop100 <[hidden email]>
Sent: 21 May 2020 04:50
To: [hidden email] <[hidden email]>
Subject: I'd like to know how to measure all ROIs (200000~500000) using the macro as fast as manual measuring.

Dear all,

I'd like to measure all ROIs (200000~500000) using the macro.
So, I performed the macro referred to the past post as below.

----------------------------------
count=roiManager("count");
array=newArray(count);
for(i=0; i<count;i++) {
        array[i] = i;
}
roiManager("Select", array);
roiManager("Measure");
----------------------------------

But it worked very slow compared with the method manually select all ROIs
and put on the "Measure" button on ROI Manager.

Because I have to measure many slices (each has 200000~500000 ROIs), I'd
like to use the macro.
How should I do macro as fast as the manual method?

Sincerely,
Hayato



--
Sent from: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.1557.x6.nabble.com%2F&amp;data=02%7C01%7Ckrs5%40leicester.ac.uk%7C6f784f5132b24cd6535408d7fd3bbade%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C1%7C637256305300350766&amp;sdata=mQy9FYRPypgbalIm%2FuYAuRR1OLNiaK2s0Lx6pyFWUDc%3D&amp;reserved=0

--
ImageJ mailing list: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&amp;data=02%7C01%7Ckrs5%40leicester.ac.uk%7C6f784f5132b24cd6535408d7fd3bbade%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C1%7C637256305300350766&amp;sdata=GiBieb2NTj8xnvRNXepVMUQDjmp9JcFcQaMf3ypRfpM%3D&amp;reserved=0

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