macro "Replace each ROI with a single centroid black pixel on white background)" { /* This macro draws a single pixel at the centroid of each particle. The foreground is white and the background is black. */ if (roiManager("count")>0) { saveSettings(); setBatchMode(true); setForegroundColor(0, 0, 0); setBackgroundColor(255, 255, 255); run("Select All"); run("Clear", "slice"); for (i=0; i