record starts and doWand
Posted by Martin du Saire on Sep 22, 2005; 8:50pm
URL: http://imagej.273.s1.nabble.com/Macro-question-tp3704801p3704803.html
Hi,
The following macro generates different composite ROI depending on
whether the Particle Analyzer displays Nothing, Masks or Outlines,
even though the XStart, YStart values are the same. Displaying
Nothing and Masks seems to be equivalent. Has anyone else encountered this?
Thanks.
Martin
run("Set Measurements...", "redirect=None decimal=3");
run("Analyze Particles...", "minimum=200 maximum=307201 bins=20
show=Outlines display record clear");
for (i=0; i<nResults; i++) {
x = getResult('XStart', i);
y = getResult('YStart', i);
if (i>0) setKeyDown("shift");
doWand(x,y);
}