Dear Christian,
That did the job, thanks!
Andrew
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of Christian Liebig
Sent: 15 February 2012 09:04
To:
[hidden email]
Subject: Re: Clear list in for loop
Hi Andrew,
have you tried
run("Clear Results");
?
Best wishes,
Christian
On 14.02.2012 16:52, Andrew Bell wrote:
> Hi list...
>
> I'm using List.setMeasurements in a macro to get some data without pulling up a results table, but it is causing problems later when I finally do want to write a results table.
>
> In essence what happens is:
>
> open image set A (sequentially)
> Threshold to create ROI
> use List.setMeasurements to get the information required to draw a box around each ROI
> save ROI list as a zip file
> close all open windows
>
> open Image set B (sequentially)
> open ROI.zip
> run roiManager("Measure")
>
> At this point, I should only have the data from the current image, but infact, all the measurements taken from image set A are present. I have tried closing the results table with
>
> x = isOpen("Results");
> if(x==1) {
> selectWindow("Results");
> run("Close");
> }
>
> And I hav tried clearing the list with List.clear();
>
> However neither have worked. Has anyone got any suggestions as to the cause or solution?
>
> Andrew