http://imagej.273.s1.nabble.com/Increasing-running-times-Versatile-Wand-plugin-tp5012433p5012434.html
> the fourth time - it ran so slowly that I had to kill it.
long.
> Hi,
> I'm running an imageJ macro that calls the Versatile Wand plugin and uses
> it 10 times per image. I manually open an image such as the attached image,
> then run the following code:
>
> run("Gaussian Blur...", "sigma=2");
> WANDS = newArray(75, 10, 50, 20, 30,35, 76,90,105,0);
> run("Set Scale...", "global");
> start = getTime();
> for(wandValue=0; wandValue < WANDS.length-1; wandValue++){
> run("Versatile Wand", "value="+WANDS[wandValue]+" color=-100
> gradient="+10+" connectedness=4-connected x="+780+" y="+780+" do");
> }
> end = getTime();
> itTook = (end - start)/1000;
> print("Running time: " + itTook);
>
> And then manually close the image. The first time I ran it, it took 11.028
> seconds, the second time: 22.782 seconds, the third time: 38.631, and the
> fourth time - it ran so slowly that I had to kill it. It always happens
> like this and I have to restart Fiji in order to be able to continue
> running my macro on additional images.
>
> What might the problem be? (I'm running it on a mac 10.9.5)
>
> Thank you,
> Avital
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>