// label a moving particle macro // author Ed Simmons (ed@esimagingsolutions.com) title = getTitle();// store the title of the original window to enable us to switch back to it run("Duplicate...", "title=temp duplicate range = 1-"+nSlices); selectWindow("temp"); setThreshold(126, 255); // adjust to suit your object run("Set Measurements...", " centroid slice limit redirect=None decimal=0"); run("Analyze Particles...", "size=0-Infinity circularity=0.00-1.00 show=Nothing display clear in_situ stack"); // adjust the size and circularity to control what is found // don't draw the label right on top of the particle, here is an offset in x and y xoffset=5; yoffset=10; // select the original image window, it's time to draw some labels. selectWindow(title); for(result=1; result