getPixelSize(unit, pixelw, pixelh) // gets the pixel dimensions run("Set Measurements...", "area mean min center integrated display redirect=None decimal=4"); // sets which things to measure imageTitle=getTitle(); red=imageTitle +" (red)"; blue=imageTitle +" (blue)"; // sets the names for the chanels run("Split Channels"); selectWindow(red); run("Subtract Background...", "rolling=50"); // performs rolling ball background substraction selectWindow(blue); setAutoThreshold("Li dark"); setOption("BlackBackground", false); run("Convert to Mask"); run("Analyze Particles...", "size=0.20-Infinity show=Nothing display"); for(i=0; i