Draw ROIs from Analyze Particles in batch mode
Posted by Aaron Johnson-9 on May 19, 2011; 7:44pm
URL: http://imagej.273.s1.nabble.com/Draw-ROIs-from-Analyze-Particles-in-batch-mode-tp3684518.html
In a macro running in batch mode how can I draw the ROIs created with Analyze Particles on a first image (A) onto a second image (B)? The following macro works when not in batch mode but the ROIs do not appear in the second image when running in batch mode. Thanks.
Aaron
selectImage(A);
run("Set Measurements...", "area area_fraction display redirect=["+ B +"] decimal=3");
run("Analyze Particles...", "size=3-Infinity circularity=0.00-1.00 show=Nothing exclude include add");
selectImage(B);
roiManager("Show All");
run("Flatten");
save(dir+B+".jpg");